結果
問題 |
No.2016 Countdown Divisors
|
ユーザー |
|
提出日時 | 2022-07-23 07:52:03 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 196 ms / 2,000 ms |
コード長 | 245 bytes |
コンパイル時間 | 2,580 ms |
コンパイル使用メモリ | 197,088 KB |
最終ジャッジ日時 | 2025-01-30 13:15:56 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
#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; } }