#include <stdio.h>
int main()
{
int a[10];
int count[5] = {0, 0, 0, 0, 0};
int i, j;
for (i = 0; i < 10; i++) {
if(a[i] > 5) {
printf("input from 1 to 5 integer\n"); i--;
continue;
}
}
for (i = 0; i < 10; i++) {
}
for (i = 1; i <= 5; i++) {
for (j = 0; j < 10; j++) {
if (a[j] == i) count[i - 1]++;
}
}
for (i = 10; i > 0; i--) {
for (j = 0; j < 5; j++) {
if (count[j] >= i) {
} else {
}
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCWludCBhWzEwXTsKCWludCBjb3VudFs1XSA9IHswLCAwLCAwLCAwLCAwfTsKCWludCBpLCBqOwoJCglmb3IgKGkgPSAwOyBpIDwgMTA7IGkrKykgewoJCXNjYW5mKCIlZCIsICZhW2ldKTsKCQlpZihhW2ldID4gNSkgewoJCQlwcmludGYoImlucHV0IGZyb20gMSB0byA1IGludGVnZXJcbiIpOwoJCQlpLS07CgkJCWNvbnRpbnVlOwoJCX0KCX0KCQoJcHJpbnRmKCJcbmEgPSB7ICIpOwoJZm9yIChpID0gMDsgaSA8IDEwOyBpKyspIHsKCQlwcmludGYoIiVkICIsIGFbaV0pOwoJfQoJcHJpbnRmKCJ9XG5cbiIpOwoJCglmb3IgKGkgPSAxOyBpIDw9IDU7IGkrKykgewoJCWZvciAoaiA9IDA7IGogPCAxMDsgaisrKSB7CgkJCWlmIChhW2pdID09IGkpIGNvdW50W2kgLSAxXSsrOwoJCX0KCX0KCWZvciAoaSA9IDEwOyBpID4gMDsgaS0tKSB7CgkJcHJpbnRmKCIlMmQgLSAiLCBpKTsKCQlmb3IgKGogPSAwOyBqIDwgNTsgaisrKSB7CgkJCWlmIChjb3VudFtqXSA+PSBpKSB7CgkJCQlwcmludGYoIiogIik7CgkJCX0gZWxzZSB7CgkJCQlwcmludGYoIiAgIik7CgkJCX0KCQl9CgkJcHV0Y2hhcignXG4nKTsKCX0KCXByaW50ZigiICAgICAxIDIgMyA0IDVcbiIpOwoJCglyZXR1cm4gMDsKfQ==