結果
| 問題 |
No.481 1から10
|
| ユーザー |
splatatsugoma
|
| 提出日時 | 2017-02-10 22:38:17 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 181 bytes |
| コンパイル時間 | 187 ms |
| コンパイル使用メモリ | 20,608 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-28 07:45:30 |
| 合計ジャッジ時間 | 938 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 1 WA * 7 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:26: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | for(i=0;i<9;i++) scanf("%d\n",&N[i]);
| ^~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(){
int i,N[10],ans=0;
for(i=0;i<9;i++) scanf("%d\n",&N[i]);
for(i=0;i<10;i++){
if((i+1)!=N[i]){
ans=i+1;
}
}
printf("%d\n",ans);
return 0;
}
splatatsugoma