結果

問題 No.2721 "Don't say N" Game
ユーザー 16171617
提出日時 2024-04-16 14:25:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 179 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-04-16 14:25:31
合計ジャッジ時間 1,224 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sympy
T = int(input())
for t in T:
    N = int(input())
    turn_needed = len(sympy.divisors(N))
    if turn_needed%2 == 1:
        print("P")
    else:
        print("K")
0