結果

問題 No.2016 Countdown Divisors
ユーザー atjh16atjh16
提出日時 2022-07-23 07:52:03
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 169 ms / 2,000 ms
コード長 245 bytes
コンパイル時間 2,180 ms
コンパイル使用メモリ 201,964 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-18 00:47:12
合計ジャッジ時間 6,504 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 167 ms
4,376 KB
testcase_02 AC 169 ms
4,380 KB
testcase_03 AC 152 ms
4,376 KB
testcase_04 AC 133 ms
4,380 KB
testcase_05 AC 128 ms
4,376 KB
testcase_06 AC 47 ms
4,376 KB
testcase_07 AC 47 ms
4,376 KB
testcase_08 AC 164 ms
4,380 KB
testcase_09 AC 163 ms
4,376 KB
testcase_10 AC 165 ms
4,376 KB
testcase_11 AC 166 ms
4,376 KB
testcase_12 AC 164 ms
4,380 KB
testcase_13 AC 141 ms
4,380 KB
testcase_14 AC 135 ms
4,380 KB
testcase_15 AC 134 ms
4,376 KB
testcase_16 AC 152 ms
4,376 KB
testcase_17 AC 146 ms
4,384 KB
testcase_18 AC 149 ms
4,380 KB
testcase_19 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int t, n;
set<int> s = { 1, 3, 4, 5, 7, 8 };

int main()
{
	cin >> t;

	for (int i = 0; i < t; i++) {
		cin >> n;

		if (s.find(n) != s.end())
			cout << 1 << endl;
		else
			cout << 2 << endl;
	}
}
0