結果

問題 No.2721 "Don't say N" Game
ユーザー hiro1729hiro1729
提出日時 2024-04-13 07:19:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 113 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 82,224 KB
実行使用メモリ 68,988 KB
最終ジャッジ日時 2024-04-13 07:19:13
合計ジャッジ時間 1,684 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,632 KB
testcase_01 AC 67 ms
68,368 KB
testcase_02 AC 65 ms
67,644 KB
testcase_03 AC 67 ms
67,000 KB
testcase_04 AC 53 ms
62,780 KB
testcase_05 AC 69 ms
68,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import isqrt
for _ in range(int(input())):
	N = int(input())
	print('P' if isqrt(N) ** 2 == N else 'K')
0