結果
問題 |
No.2721 "Don't say N" Game
|
ユーザー |
|
提出日時 | 2024-05-09 10:08:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 88 ms / 2,000 ms |
コード長 | 181 bytes |
コンパイル時間 | 492 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-15 22:10:41 |
合計ジャッジ時間 | 1,124 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 5 |
ソースコード
def func(n): cnt=0 for i in range(1,n+1): if n%i==0: cnt+=1 return cnt t=int(input()) for i in range(t): n=int(input()) if func(n)%2==0: print('K') else: print('P')