結果
問題 |
No.2 素因数ゲーム
|
ユーザー |
|
提出日時 | 2023-02-05 12:26:47 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 276 bytes |
コンパイル時間 | 696 ms |
コンパイル使用メモリ | 82,328 KB |
実行使用メモリ | 59,456 KB |
最終ジャッジ日時 | 2024-07-04 02:41:20 |
合計ジャッジ時間 | 2,376 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 15 |
ソースコード
import math n = int(input()) cnt = {} cur = n for x in range(2, int(math.sqrt(n)) + 1): if cur % x == 0: cnt[x] = 0 while cur % x == 0: cnt[x] += 1 cur //= x ans = 0 for v in cnt.values(): ans ^= v if ans == 0: print("Bob") else: print("Alice")