結果
| 問題 |
No.2016 Countdown Divisors
|
| コンテスト | |
| ユーザー |
taisii2
|
| 提出日時 | 2022-07-22 21:49:07 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 173 ms / 2,000 ms |
| コード長 | 330 bytes |
| コンパイル時間 | 1,484 ms |
| コンパイル使用メモリ | 171,016 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-04 06:02:26 |
| 合計ジャッジ時間 | 4,931 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
set<int> st;
st.insert(1);
st.insert(3);
st.insert(4);
st.insert(5);
st.insert(7);
st.insert(8);
while (t--) {
int N;
cin >> N;
if (st.count(N)) {
cout << 1 << endl;
} else {
cout << 2 << endl;
}
}
}
taisii2