結果

問題 No.2 素因数ゲーム
ユーザー aaaaaaaaaa2230
提出日時 2021-04-05 10:15:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 249 bytes
コンパイル時間 259 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 58,496 KB
最終ジャッジ日時 2024-12-30 12:34:18
合計ジャッジ時間 2,943 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 0
now = n
for i in range(2,int(n**0.5)+1):
    if i > now:
        break
    c = 0
    while now%i == 0:
        c += 1
        now //= i
    ans ^= c
if now != 1:
    ans ^= 1
if ans:
    print("Alice")
else:
    print("Bob")
0