結果
| 問題 | No.2 素因数ゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2015-02-25 14:23:55 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 16 ms / 5,000 ms | 
| コード長 | 339 bytes | 
| コンパイル時間 | 258 ms | 
| コンパイル使用メモリ | 6,784 KB | 
| 実行使用メモリ | 6,272 KB | 
| 最終ジャッジ日時 | 2024-12-26 11:02:26 | 
| 合計ジャッジ時間 | 1,611 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 31 | 
ソースコード
def get_pow(n):
    res = []
    i = 2
    while i*i <= n:
        cnt = 0
        while n%i == 0:
            n /= i
            cnt += 1
        if cnt > 0: res.append(cnt)
        i += 1
    if n > 1: res.append(1)
    return res
        
N = int(raw_input())
x = 0
for stone in get_pow(N): x ^= stone
print "Alice" if x != 0 else "Bob"
            
            
            
        