結果
問題 |
No.2016 Countdown Divisors
|
ユーザー |
![]() |
提出日時 | 2022-07-25 01:17:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 158 ms / 2,000 ms |
コード長 | 356 bytes |
コンパイル時間 | 1,560 ms |
コンパイル使用メモリ | 168,516 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 21:11:17 |
合計ジャッジ時間 | 5,046 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> #include <string> #include <algorithm> using namespace std; int main() { int n; cin >> n; vector<int> list1 = {1, 3, 4, 5, 7, 8}; for (int i = 0; i < n; i++){ int c; cin >> c; if (find(list1.begin(), list1.end(), c) == list1.end()) { cout << 2 << endl; } else { cout << 1 << endl; } } }