結果

問題 No.481 1から10
ユーザー kachipankachipan
提出日時 2023-06-23 13:21:46
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 315 bytes
コンパイル時間 948 ms
コンパイル使用メモリ 27,076 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-13 08:15:25
合計ジャッジ時間 827 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}

0