結果
| 問題 |
No.2016 Countdown Divisors
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-07 15:43:22 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 215 ms / 2,000 ms |
| コード長 | 472 bytes |
| コンパイル時間 | 1,947 ms |
| コンパイル使用メモリ | 201,804 KB |
| 最終ジャッジ日時 | 2025-01-30 19:12:23 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 19 |
ソースコード
typedef long long ll;
typedef long double ld;
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
ll n;
std::cin >> n;
map<ll,bool> m;
m[1]=true;
m[3]=true;
m[4]=true;
m[5]=true;
m[7]=true;
m[8]=true;
for (int i = 0; i < n; i++) {
ll t;
std::cin >> t;
if(m[t]){
std::cout << 1 << std::endl;
}else{
std::cout << 2 << std::endl;
}
}
}