結果
| 問題 |
No.2721 "Don't say N" Game
|
| コンテスト | |
| ユーザー |
hitonanode
|
| 提出日時 | 2024-04-12 22:45:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 125 bytes |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-02 23:36:33 |
| 合計ジャッジ時間 | 765 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 |
ソースコード
from math import sqrt
for _ in range(int(input())):
n = int(input())
print('P' if sqrt(n) == int(sqrt(n)) else 'K')
hitonanode