結果

問題 No.2016 Countdown Divisors
ユーザー pengin_2000pengin_2000
提出日時 2022-08-10 23:11:46
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 275 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 29,440 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-21 08:56:17
合計ジャッジ時間 2,232 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main()
{
	int t;
	scanf("%d", &t);
	int n;
	int i, a[6] = { 1,3,4,5,7,8 }, f;
	for (; t > 0; t--)
	{
		scanf("%d", &n);
		f = 0;
		for (i = 0; i < 6; i++)
			if (n == a[i])
				f++;
		if (f > 0)
			printf("1\n");
		else
			printf("2\n");
	}
	return 0;
}
0