#include <stdio.h>
int main(void) {
int s[10];
int t[10];
int i, j, temp;
for (i = 0; i < 10; i++) {
}
for (i = 0; i < 10; i++) {
t[i] = s[i];
}
for (i = 0; i < 9; i++) {
for (j = i + 1; j < 10; j++) {
if (t[i] < t[j]) {
temp = t[i];
t[i] = t[j];
t[j] = temp;
}
}
}
for (i = 0; i < 10; i++) {
printf("%d人目 %d点\n", i
+ 1, s
[i
]); }
for (i = 0; i < 10; i++) {
if (s[i] == t[8]) {
break;
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKHZvaWQpIHsKICAgIGludCBzWzEwXTsKICAgIGludCB0WzEwXTsKICAgIGludCBpLCBqLCB0ZW1wOwogICAgZm9yIChpID0gMDsgaSA8IDEwOyBpKyspIHsKICAgICAgICBzY2FuZigiICVkIiwgJnNbaV0pOwogICAgfQogICAgZm9yIChpID0gMDsgaSA8IDEwOyBpKyspIHsKICAgICAgICB0W2ldID0gc1tpXTsKICAgIH0KICAgIGZvciAoaSA9IDA7IGkgPCA5OyBpKyspIHsKICAgICAgICBmb3IgKGogPSBpICsgMTsgaiA8IDEwOyBqKyspIHsKICAgICAgICAgICAgaWYgKHRbaV0gPCB0W2pdKSB7CiAgICAgICAgICAgICAgICB0ZW1wID0gdFtpXTsKICAgICAgICAgICAgICAgIHRbaV0gPSB0W2pdOwogICAgICAgICAgICAgICAgdFtqXSA9IHRlbXA7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CiAgICBmb3IgKGkgPSAwOyBpIDwgMTA7IGkrKykgewogICAgICAgIHByaW50ZigiJWTkurrnm64gJWTngrlcbiIsIGkgKyAxLCBzW2ldKTsKICAgIH0KICAgIGZvciAoaSA9IDA7IGkgPCAxMDsgaSsrKSB7CiAgICAgICAgaWYgKHNbaV0gPT0gdFs4XSkgewogICAgICAgICAgICBwcmludGYoIjnkvY06JWTkurrnm65cbiIsIGkgKyAxKTsKICAgICAgICAgICAgYnJlYWs7IAogICAgICAgIH0KCX0KCXJldHVybiAwOwp9Cg==