結果
問題 |
No.2721 "Don't say N" Game
|
ユーザー |
|
提出日時 | 2024-04-16 10:51:38 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 69 ms / 2,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 313 ms |
コンパイル使用メモリ | 82,788 KB |
実行使用メモリ | 68,988 KB |
最終ジャッジ日時 | 2024-10-07 04:06:13 |
合計ジャッジ時間 | 1,192 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 5 |
ソースコード
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()