結果
問題 |
No.2721 "Don't say N" Game
|
ユーザー |
👑 |
提出日時 | 2023-10-04 15:27:02 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 65 ms / 2,000 ms |
コード長 | 128 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 81,904 KB |
実行使用メモリ | 66,464 KB |
最終ジャッジ日時 | 2024-07-26 15:12:44 |
合計ジャッジ時間 | 1,065 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 5 |
ソースコード
for t in [0]*int(input()): N=int(input()) l,r=1,N+1 while l+1<r: m=(l+r)//2 if m*m<=N:l=m else:r=m print("KP"[N==l*l])