結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-30 20:28:37 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 365 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 27,904 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-07 03:07:45 |
| 合計ジャッジ時間 | 517 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#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) {
check_num++;
printf("%d\n", check_num);
}
return 0;
}