結果

問題 No.2721 "Don't say N" Game
ユーザー MasKoaTSMasKoaTS
提出日時 2024-03-29 15:03:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 578 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 75,040 KB
最終ジャッジ日時 2024-03-29 15:03:45
合計ジャッジ時間 1,893 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
53,460 KB
testcase_01 AC 68 ms
72,228 KB
testcase_02 AC 65 ms
70,180 KB
testcase_03 AC 83 ms
75,040 KB
testcase_04 AC 57 ms
65,696 KB
testcase_05 AC 68 ms
72,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

def solve(n):
    cnt = sum(n % i == 0 for i in range(1, n + 1))
    if(cnt & 1):
        return 'P'
    return 'K'

t = int(input())
for _ in [0] * t:
    n = int(input())
    print(solve(n))
0