結果
| 問題 |
No.2721 "Don't say N" Game
|
| コンテスト | |
| ユーザー |
るこーそー
|
| 提出日時 | 2024-09-25 15:26:30 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 75 ms / 2,000 ms |
| コード長 | 286 bytes |
| コンパイル時間 | 207 ms |
| コンパイル使用メモリ | 81,868 KB |
| 実行使用メモリ | 69,364 KB |
| 最終ジャッジ日時 | 2024-09-25 15:26:35 |
| 合計ジャッジ時間 | 1,146 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 |
ソースコード
def divisors(n):
divisor=[]
for i in range(1,int(n**0.5)+1):
if n%i!=0:continue
divisor.append(i)
if i!=n//i:divisor.append(n//i)
return sorted(divisor)
t=int(input())
for _ in range(t):
n=int(input())
div=divisors(n)
print('K' if len(div)%2==0 else 'P' )
るこーそー