結果
| 問題 |
No.2016 Countdown Divisors
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-23 00:17:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 20 ms / 2,000 ms |
| コード長 | 315 bytes |
| コンパイル時間 | 2,063 ms |
| コンパイル使用メモリ | 196,216 KB |
| 最終ジャッジ日時 | 2025-01-30 13:10:28 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
static inline void solution() {
set<int> st = {1, 3, 4, 5, 7, 8};
int TT;
cin >> TT;
while (TT--) {
int n;
cin >> n;
cout << (st.count(n) ? 1 : 2) << '\n';
}
}
int main() {
ios_base::sync_with_stdio(0), cin.tie(0);
solution();
return 0;
}