結果
| 問題 | No.2016 Countdown Divisors |
| コンテスト | |
| ユーザー |
Iroha_3856
|
| 提出日時 | 2026-01-11 16:22:20 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 180 ms / 2,000 ms |
| コード長 | 718 bytes |
| 記録 | |
| コンパイル時間 | 3,341 ms |
| コンパイル使用メモリ | 333,872 KB |
| 実行使用メモリ | 7,852 KB |
| 最終ジャッジ日時 | 2026-01-11 16:22:29 |
| 合計ジャッジ時間 | 8,296 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/modint>
using mint = atcoder::modint998244353;
#define rep(i, l, r) for (int i = (int)(l); i < (int)(r); i++)
#define ll long long
#define all(x) (x).begin(), (x).end()
#define siz(x) (int)x.size()
const int inf = 1e9;
const ll INF = 4e18;
template<class T> bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
int main() {
int T; cin >> T;
while(T--) {
int n; cin >> n;
//何で?
if (n == 1 or n == 3 or n == 4 or n == 5 or n == 7 or n == 8) cout << 1 << endl;
else cout << 2 << endl;
}
}
Iroha_3856