結果

問題 No.2721 "Don't say N" Game
ユーザー hiro1729
提出日時 2024-04-13 07:19:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 113 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 68,224 KB
最終ジャッジ日時 2024-10-02 23:56:40
合計ジャッジ時間 1,165 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

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