結果

問題 No.2721 "Don't say N" Game
ユーザー miho-4miho-4
提出日時 2024-04-12 21:23:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 82,092 KB
実行使用メモリ 66,220 KB
最終ジャッジ日時 2024-04-12 21:23:12
合計ジャッジ時間 1,314 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,084 KB
testcase_01 AC 65 ms
65,212 KB
testcase_02 AC 68 ms
64,788 KB
testcase_03 AC 81 ms
66,220 KB
testcase_04 AC 57 ms
65,648 KB
testcase_05 AC 66 ms
64,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

Test=int(input())
for _ in range(Test):
  n=int(input())
  cnt=0
  for i in range(1,n):
    if n%i==0:
      cnt+=1
  print("P" if cnt%2==0 else "K")
0