結果
| 問題 |
No.2016 Countdown Divisors
|
| コンテスト | |
| ユーザー |
startcpp
|
| 提出日時 | 2022-07-28 01:14:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 176 ms / 2,000 ms |
| コード長 | 237 bytes |
| コンパイル時間 | 462 ms |
| コンパイル使用メモリ | 64,056 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-17 14:58:26 |
| 合計ジャッジ時間 | 4,661 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 19 |
ソースコード
#include <iostream>
using namespace std;
int main() {
int dp[9] = {0, 1, 2, 1, 1, 1, 2, 1, 1};
int t; cin >> t;
while (t--) {
int n;
cin >> n;
if (n >= 9) { cout << 2 << endl; }
else { cout << dp[n] << endl; }
}
return 0;
}
startcpp