結果
問題 |
No.2 素因数ゲーム
|
ユーザー |
|
提出日時 | 2021-06-29 15:47:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 275 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-06-25 18:30:31 |
合計ジャッジ時間 | 1,994 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 14 |
ソースコード
from collections import defaultdict N = int(input()) so = defaultdict(int) m = N x = 2 while m > 1 and x < int(N**0.5)+10: while m%x==0: m //= x so[x] += 1 x += 1 f = 0 for v in so.values(): f ^= v if f: print("Alice") else: print("Bob")