結果

問題 No.2 素因数ゲーム
ユーザー tktk_snsn
提出日時 2020-12-15 12:12:12
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 265 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-20 01:36:18
合計ジャッジ時間 1,797 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
xor = 0
for i in range(2, int(n ** 0.5 + 0.5) + 1):
    if n % i == 0:
        cnt = 0
        while n % i == 0:
            cnt += 1
            n //= i
        xor ^= cnt
if n != 1:
    xor ^= 1

if xor:
    print("Alice")
else:
    print("Bob")
0