結果
問題 | No.2721 "Don't say N" Game |
ユーザー | naesira |
提出日時 | 2024-04-12 21:30:26 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 65 ms / 2,000 ms |
コード長 | 204 bytes |
コンパイル時間 | 195 ms |
コンパイル使用メモリ | 82,556 KB |
実行使用メモリ | 67,252 KB |
最終ジャッジ日時 | 2024-04-12 21:30:31 |
合計ジャッジ時間 | 1,241 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 40 ms
52,540 KB |
testcase_01 | AC | 60 ms
66,628 KB |
testcase_02 | AC | 62 ms
67,252 KB |
testcase_03 | AC | 65 ms
66,188 KB |
testcase_04 | AC | 56 ms
66,184 KB |
testcase_05 | AC | 58 ms
66,412 KB |
ソースコード
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')