#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
int MAX = 100;
int n[MAX];
/*配列の作成*/
int i;
for(i = 0; i < MAX; i++) {
}
/*最小値を取り出す*/
int index=MAX-1;
for(i = index; i>=0; i--) {
if(n[i] <= n[index])
index = i;
}
printf("最小値:%d 要素番号:%d\n", n
[index
], index
);
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+CiNpbmNsdWRlPHRpbWUuaD4KCmludCBtYWluKCkKewogIGludCBNQVggPSAxMDA7CiAgaW50IG5bTUFYXTsKICBzcmFuZCgodW5zaWduZWQpIHRpbWUoTlVMTCkpOwogIC8q6YWN5YiX44Gu5L2c5oiQKi8KICBpbnQgaTsKICBmb3IoaSA9IDA7IGkgPCBNQVg7IGkrKykgewogICAgaWYoaSU1PT0wKXB1dGNoYXIoJ1xuJyk7CiAgICBuW2ldID0gcmFuZCgpICUgMTAwOwogICAgcHJpbnRmKCIlM2Q6JTNkICAiLGksbltpXSk7CiAgfQogIHB1dGNoYXIoJ1xuJyk7CgogIC8q5pyA5bCP5YCk44KS5Y+W44KK5Ye644GZKi8KICBpbnQgaW5kZXg9TUFYLTE7CiAgZm9yKGkgPSBpbmRleDsgaT49MDsgaS0tKSB7CiAgICBpZihuW2ldIDw9IG5baW5kZXhdKQogICAgICBpbmRleCA9IGk7CiAgfQogIHByaW50Zigi5pyA5bCP5YCk77yaJWQg6KaB57Sg55Wq5Y+3OiVkXG4iLCBuW2luZGV4XSwgaW5kZXgpOwoKICByZXR1cm4gMDsKfQ==