結果
| 問題 |
No.2721 "Don't say N" Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-12 21:30:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 68 ms / 2,000 ms |
| コード長 | 204 bytes |
| コンパイル時間 | 197 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 66,048 KB |
| 最終ジャッジ日時 | 2024-10-02 23:00:48 |
| 合計ジャッジ時間 | 1,118 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 |
ソースコード
for _ in range(T := int(input())):
N = int(input())
div_cnt = 0
for i in range(1, int(N**0.5)+1):
if N%i == 0: div_cnt += 2
if i**2 == N: div_cnt -= 1
print('K' if div_cnt%2 == 0 else 'P')