#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char s[1024];//fgets関数に与える文字列バッファ
char *t;//fgets戻り値格納用
int n;//atoi関数の戻り値格納用
int i = 0, j,a[10] = {};
while (i < 4) {
printf("%d回目。 0〜9の数字を入力して下さい。\n", i
+ 1); if (n < 0 | n > 9)
else {
a[n]++;
i++;
}
}
for ( i = 0; i < 10; ++i)
for ( j = 0; j < a[i]; ++j)
return (0);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KaW50IG1haW4odm9pZCkKewogIGNoYXIgc1sxMDI0XTsvL2ZnZXRz6Zai5pWw44Gr5LiO44GI44KL5paH5a2X5YiX44OQ44OD44OV44KhCiAgY2hhciAqdDsvL2ZnZXRz5oi744KK5YCk5qC857SN55SoCiAgaW50IG47Ly9hdG9p6Zai5pWw44Gu5oi744KK5YCk5qC857SN55SoCiAgaW50IGkgPSAwLCBqLGFbMTBdID0ge307CiAgd2hpbGUgKGkgPCA0KSB7CiAgICBwcmludGYoIiVk5Zue55uu44CC44CAMOOAnDnjga7mlbDlrZfjgpLlhaXlipvjgZfjgabkuIvjgZXjgYTjgIJcbiIsIGkgKyAxKTsKICAgIGZnZXRzKHMsIDEwMjQsIHN0ZGluKTsKICAgIG4gPSBhdG9pKHMpOwogICAgcHJpbnRmKCJuID0gJWRcbiIsIG4pOwogICAgaWYgKG4gPCAwIHwgbiA+IDkpCiAgICAgIHByaW50Zigi56+E5Zuy5aSW44Gu5pWw5a2X44GM5YWl5Yqb44GV44KM44G+44GX44Gf44CCXG4iICk7CiAgICBlbHNlIHsKICAgICAgYVtuXSsrOwogICAgICBpKys7CiAgICB9CiAgfQogIGZvciAoIGkgPSAwOyBpIDwgMTA7ICsraSkKICAgIGZvciAoIGogPSAwOyBqIDwgYVtpXTsgKytqKQogICAgICBwcmludGYoIiVkICIsIGkpOwoKICByZXR1cm4gKDApOwp9Cg==