結果
| 問題 | No.2 素因数ゲーム | 
| コンテスト | |
| ユーザー |  Kude | 
| 提出日時 | 2020-09-03 06:41:17 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 48 ms / 5,000 ms | 
| コード長 | 245 bytes | 
| コンパイル時間 | 206 ms | 
| コンパイル使用メモリ | 82,176 KB | 
| 実行使用メモリ | 58,112 KB | 
| 最終ジャッジ日時 | 2024-11-22 15:52:31 | 
| 合計ジャッジ時間 | 2,591 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 31 | 
ソースコード
n = int(input())
c = []
for p in range(2, 10000):
    cnt = 0
    while n % p == 0:
        n //= p
        cnt += 1
    if cnt:
        c.append(cnt)
if n > 1:
    c.append(1)
g = 0
for ci in c:
    g ^= ci
print('Alice' if g > 0 else 'Bob')
            
            
            
        