結果
問題 |
No.481 1から10
|
ユーザー |
![]() |
提出日時 | 2023-06-23 13:22:20 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 28,544 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 18:14:14 |
合計ジャッジ時間 | 578 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> int main() { int num=0; // 入力は1~10のうちの9種類 for (int i = 1;i < 10;i++) { scanf("%d", &num); if (num != i) { printf("%d\n", i); return 0; } } // ここまで来たら10を書いていない printf("10"); return 0; }