結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
kachipan
|
| 提出日時 | 2023-06-23 13:21:46 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 315 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 28,032 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-30 18:14:04 |
| 合計ジャッジ時間 | 597 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 1 WA * 7 |
ソースコード
#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);
break;
}
}
// ここまで来たら10を書いていない
printf("10");
return 0;
}
kachipan