結果
| 問題 | No.2721 "Don't say N" Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-12 22:35:57 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 3 ms / 2,000 ms |
| + 634µs | |
| コード長 | 383 bytes |
| 記録 | |
| コンパイル時間 | 1,992 ms |
| コンパイル使用メモリ | 330,524 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-09 07:15:59 |
| 合計ジャッジ時間 | 3,103 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t;
cin >> t;
for (int i = 0; i < t; i++){
int n;
cin >> n;
int count = 0;
for (int j = 1; j <= n; j++){
if (n%j == 0) count++;
}
cout << (count%2 ? "P" : "K") << endl;
}
return 0;
}