結果

問題 No.2721 "Don't say N" Game
ユーザー MasKoaTSMasKoaTS
提出日時 2023-10-05 22:30:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 374 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 77,032 KB
最終ジャッジ日時 2023-10-05 22:30:09
合計ジャッジ時間 1,597 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,356 KB
testcase_01 AC 98 ms
76,844 KB
testcase_02 AC 97 ms
76,420 KB
testcase_03 AC 112 ms
77,032 KB
testcase_04 AC 89 ms
75,808 KB
testcase_05 AC 102 ms
76,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline


query = [int(input()) for _ in [0] * int(input())]

for n in query:
    s = sum((n % i == 0) for i in range(1, n + 1))
    if(s & 1):
        print('P')
    else:
        print('K')
0