結果

問題 No.481 1から10
ユーザー kachipan
提出日時 2023-06-23 13:21:15
言語 C
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 314 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 27,136 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 18:13:07
合計ジャッジ時間 2,445 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 8
権限があれば一括ダウンロードができます

ソースコード

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