結果

問題 No.2 素因数ゲーム
ユーザー etdvucur8o
提出日時 2024-07-12 11:09:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 5,000 ms
コード長 234 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 58,112 KB
最終ジャッジ日時 2024-07-12 11:09:07
合計ジャッジ時間 3,400 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

x = 0
b = 2
e = 0
while b * b <= N:
    while N % b == 0:
        N //= b
        e += 1
    
    x ^= e
    b += 1
    e = 0

if N > 1:
    x ^= 1

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