#include <stdio.h>
int main(void) {
// my code go here
int lucky,count,i,data[11];
for(i=0;i<10;i++){
printf("%d人目の点数:%d\n",i
+1,data
[i
]); }
for(lucky=0;lucky<10;lucky++){
count=0;
for(i=0;i<10;i++){
if(data[i]<data[lucky]){
count++;
}
}
if(count==1){
printf("\n9位:%d人目\n",lucky
+1); }
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CgkvLyBteSBjb2RlIGdvIGhlcmUKCQoJaW50IGx1Y2t5LGNvdW50LGksZGF0YVsxMV07Cgpmb3IoaT0wO2k8MTA7aSsrKXsKCXNjYW5mKCIlZCIsJmRhdGFbaV0pOwoJcHJpbnRmKCIlZOS6uuebruOBrueCueaVsDolZFxuIixpKzEsZGF0YVtpXSk7Cn0KCWZvcihsdWNreT0wO2x1Y2t5PDEwO2x1Y2t5KyspewoJCWNvdW50PTA7CgkJZm9yKGk9MDtpPDEwO2krKyl7CgkJCWlmKGRhdGFbaV08ZGF0YVtsdWNreV0pewoJCQkJY291bnQrKzsKCQkJfQoJCX0KCQlpZihjb3VudD09MSl7CgkJcHJpbnRmKCJcbu+8meS9jTolZOS6uuebrlxuIixsdWNreSsxKTsKCX0KCQp9CgkKCXJldHVybiAwOwp9Cg==