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