結果

問題 No.2 素因数ゲーム
ユーザー kumatan400
提出日時 2023-03-16 13:30:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,201 ms / 5,000 ms
コード長 206 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,168 KB
実行使用メモリ 59,032 KB
最終ジャッジ日時 2024-09-18 09:19:53
合計ジャッジ時間 4,640 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

x = 0
b = 2
e = 0
while N > 1:
    while N % b == 0:
        N //= b
        e += 1
    if  e > 0:
        x ^= e
    b += 1
    e = 0

if x == 0:
    print("Bob")
else:
    print("Alice")
0