結果
| 問題 |
No.481 1から10
|
| ユーザー |
splatatsugoma
|
| 提出日時 | 2017-02-10 22:32:14 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 179 bytes |
| コンパイル時間 | 763 ms |
| コンパイル使用メモリ | 19,200 KB |
| 実行使用メモリ | 11,776 KB |
| 最終ジャッジ日時 | 2024-12-28 07:04:17 |
| 合計ジャッジ時間 | 34,591 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 2 |
| other | TLE * 8 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:32: warning: too many arguments for format [-Wformat-extra-args]
5 | for(i=0;i=9;i++) scanf("&d\n",&N[i]);
| ^~~~~~
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