#include <stdio.h>
int main()
{
int i, data[10];
int min,s9,ix;
for ( i=0 ; i<10 ; i++ )
{
}
min=data[0];
for(i=0; i<10; i++) {
if(min>data[i]) {
min=data[i];
}
}
s9=100;
for(i=0; i<10; i++) {
if(data[i]>min && (data[i]-min<s9)){
s9=data[i];
ix=i;
}
}
printf("9位 %d, %d番目\n", s9
,ix
+1);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkKewppbnQgaSwgZGF0YVsxMF07CmludCBtaW4sczksaXg7CmZvciAoIGk9MCA7IGk8MTAgOyBpKysgKQp7CnNjYW5mKCIlZCIsICZkYXRhW2ldKTsKfQoKbWluPWRhdGFbMF07CmZvcihpPTA7IGk8MTA7IGkrKykgewppZihtaW4+ZGF0YVtpXSkgewptaW49ZGF0YVtpXTsKfQp9CgpzOT0xMDA7CmZvcihpPTA7IGk8MTA7IGkrKykgewppZihkYXRhW2ldPm1pbiAmJiAoZGF0YVtpXS1taW48czkpKXsKczk9ZGF0YVtpXTsKaXg9aTsKfQp9CgpwcmludGYoIu+8meS9jSAlZCwgJWTnlarnm65cbiIsIHM5LGl4KzEpOwoKCnJldHVybiAwOwp9