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