結果

問題 No.2721 "Don't say N" Game
ユーザー 杉浦海翔杉浦海翔
提出日時 2024-05-09 13:32:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 184 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-05-09 13:32:41
合計ジャッジ時間 1,170 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,624 KB
testcase_01 AC 108 ms
10,752 KB
testcase_02 AC 79 ms
10,496 KB
testcase_03 AC 184 ms
10,624 KB
testcase_04 AC 67 ms
10,752 KB
testcase_05 AC 106 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
l=[]
for i in range(T):
    cnt=0
    n=int(input())
    for j in range (n):
        if n%(j+1)==0:
            cnt+=1
    
    #print(cnt)   
    if(cnt%2==1):
        l.append('P')
    else:
        l.append('K')

for i in range (T):
    print(l[i])
0