結果
問題 |
No.481 1から10
|
ユーザー |
|
提出日時 | 2017-03-30 19:45:36 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 344 bytes |
コンパイル時間 | 231 ms |
コンパイル使用メモリ | 27,776 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 03:06:40 |
合計ジャッジ時間 | 696 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 WA * 1 |
ソースコード
#include <stdio.h> #include <stdbool.h> int main(void) { bool isFound = false; int num; int check_num = 0; while (~scanf("%d", &num)) { check_num++; if (num != check_num) { printf("%d\n", check_num); isFound = true; break; } } if (isFound == false) printf("%d\n", check_num); return 0; }