結果

問題 No.2721 "Don't say N" Game
ユーザー noriaokinoriaoki
提出日時 2024-04-13 11:29:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 3,656 ms
コンパイル使用メモリ 81,776 KB
実行使用メモリ 71,224 KB
最終ジャッジ日時 2024-04-13 11:30:04
合計ジャッジ時間 1,767 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,952 KB
testcase_01 AC 65 ms
65,220 KB
testcase_02 AC 61 ms
64,900 KB
testcase_03 AC 78 ms
67,488 KB
testcase_04 AC 60 ms
64,936 KB
testcase_05 AC 80 ms
71,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    N = int(input())
    flag = True
    for i in range(1, N+1):
        if N % i == 0:
            flag ^= True
    print('K' if flag else 'P')
0