結果

問題 No.2721 "Don't say N" Game
ユーザー norioc
提出日時 2025-06-11 01:25:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 791 ms
コンパイル使用メモリ 82,164 KB
実行使用メモリ 69,872 KB
最終ジャッジ日時 2025-06-11 01:25:18
合計ジャッジ時間 1,780 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import isqrt


def solve() -> bool:
    N = int(input())
    x = isqrt(N)
    return x*x != N


T = int(input())
for _ in range(T):
    if solve():
        print('K')
    else:
        print('P')
0