結果
| 問題 | No.481 1から10 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-30 19:45:36 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 344 bytes |
| 記録 | |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 36,544 KB |
| 最終ジャッジ日時 | 2026-02-21 23:34:27 |
|
ジャッジサーバーID (参考情報) |
judge2 / 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;
}