結果

問題 No.2721 "Don't say N" Game
ユーザー ThetaTheta
提出日時 2024-04-16 10:51:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 67,968 KB
最終ジャッジ日時 2024-04-16 10:51:40
合計ジャッジ時間 1,792 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,608 KB
testcase_01 AC 69 ms
67,968 KB
testcase_02 AC 67 ms
66,816 KB
testcase_03 AC 68 ms
67,328 KB
testcase_04 AC 55 ms
62,720 KB
testcase_05 AC 70 ms
67,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


from math import isqrt


def main():
    for _ in range(int(input())):
        N = int(input())
        if isqrt(N)**2 == N:
            print("P")
        else:
            print("K")


if __name__ == "__main__":
    main()
0