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