結果

問題 No.2721 "Don't say N" Game
ユーザー MasKoaTSMasKoaTS
提出日時 2023-09-24 23:59:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 193 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 76,228 KB
最終ジャッジ日時 2023-10-05 22:29:09
合計ジャッジ時間 1,452 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,904 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# WA?

import sys
input = sys.stdin.readline


query = [int(input()) for _ in [0] * int(input())]

for n in query:
    if((n ** 0.5) ** 2 == n):
        print('P')
    else:
        print('K')
0