結果
問題 |
No.2721 "Don't say N" Game
|
ユーザー |
![]() |
提出日時 | 2023-10-05 22:34:28 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 1,596 ms |
コンパイル使用メモリ | 193,576 KB |
最終ジャッジ日時 | 2025-02-17 04:32:42 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int t; cin >> t; for(int i = 0; i < t; ++i){ int n; cin >> n; int s = 0; for(int i = 1; i < n + 1; ++i){ if(n % i != 0){ continue; } ++s; } char ans = (s & 1) ? 'P' : 'K'; cout << ans << endl; } return 0; }