結果

問題 No.2 素因数ゲーム
ユーザー dice4084dice4084
提出日時 2023-01-02 21:45:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 247 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 76,392 KB
最終ジャッジ日時 2023-08-17 23:48:57
合計ジャッジ時間 4,625 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,484 KB
testcase_01 AC 74 ms
71,380 KB
testcase_02 AC 74 ms
71,480 KB
testcase_03 AC 76 ms
71,428 KB
testcase_04 AC 75 ms
71,288 KB
testcase_05 AC 75 ms
71,396 KB
testcase_06 AC 80 ms
75,924 KB
testcase_07 AC 79 ms
76,016 KB
testcase_08 AC 77 ms
75,920 KB
testcase_09 AC 79 ms
76,096 KB
testcase_10 AC 78 ms
76,044 KB
testcase_11 AC 77 ms
75,948 KB
testcase_12 AC 80 ms
76,112 KB
testcase_13 AC 77 ms
76,108 KB
testcase_14 AC 79 ms
76,112 KB
testcase_15 AC 80 ms
76,216 KB
testcase_16 AC 79 ms
75,892 KB
testcase_17 AC 80 ms
75,928 KB
testcase_18 AC 81 ms
75,916 KB
testcase_19 AC 80 ms
76,020 KB
testcase_20 AC 79 ms
76,384 KB
testcase_21 AC 80 ms
75,912 KB
testcase_22 AC 77 ms
76,392 KB
testcase_23 AC 77 ms
76,024 KB
testcase_24 AC 81 ms
76,372 KB
testcase_25 AC 81 ms
76,216 KB
testcase_26 AC 79 ms
76,052 KB
testcase_27 AC 80 ms
76,048 KB
testcase_28 AC 81 ms
76,072 KB
testcase_29 AC 78 ms
76,112 KB
testcase_30 AC 78 ms
76,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

input = sys.stdin.readline

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

    xor ^= tmp

if n > 1:
    xor ^= 1

print("Alice" if xor != 0 else "Bob")
0