結果
| 問題 | No.2721 "Don't say N" Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-09 13:32:39 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 188 ms / 2,000 ms |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 534 ms |
| コンパイル使用メモリ | 20,832 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-26 09:04:06 |
| 合計ジャッジ時間 | 2,199 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 |
ソースコード
T=int(input())
l=[]
for i in range(T):
cnt=0
n=int(input())
for j in range (n):
if n%(j+1)==0:
cnt+=1
#print(cnt)
if(cnt%2==1):
l.append('P')
else:
l.append('K')
for i in range (T):
print(l[i])