結果

問題 No.2 素因数ゲーム
ユーザー KudeKude
提出日時 2020-09-03 06:41:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 245 bytes
コンパイル時間 2,507 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 75,964 KB
最終ジャッジ日時 2023-08-14 16:53:28
合計ジャッジ時間 3,805 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
75,716 KB
testcase_01 AC 62 ms
75,768 KB
testcase_02 AC 61 ms
75,740 KB
testcase_03 AC 60 ms
75,740 KB
testcase_04 AC 62 ms
75,484 KB
testcase_05 AC 61 ms
75,736 KB
testcase_06 AC 60 ms
75,736 KB
testcase_07 AC 62 ms
75,796 KB
testcase_08 AC 62 ms
75,740 KB
testcase_09 AC 62 ms
75,476 KB
testcase_10 AC 62 ms
75,764 KB
testcase_11 AC 59 ms
75,964 KB
testcase_12 AC 61 ms
75,716 KB
testcase_13 AC 60 ms
75,736 KB
testcase_14 AC 62 ms
75,728 KB
testcase_15 AC 61 ms
75,728 KB
testcase_16 AC 60 ms
75,564 KB
testcase_17 AC 61 ms
75,676 KB
testcase_18 AC 61 ms
75,712 KB
testcase_19 AC 61 ms
75,712 KB
testcase_20 AC 61 ms
75,716 KB
testcase_21 AC 61 ms
75,736 KB
testcase_22 AC 67 ms
75,884 KB
testcase_23 AC 66 ms
75,480 KB
testcase_24 AC 60 ms
75,796 KB
testcase_25 AC 61 ms
75,680 KB
testcase_26 AC 63 ms
75,792 KB
testcase_27 AC 62 ms
75,720 KB
testcase_28 AC 60 ms
75,740 KB
testcase_29 AC 60 ms
75,728 KB
testcase_30 AC 62 ms
75,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
c = []
for p in range(2, 10000):
    cnt = 0
    while n % p == 0:
        n //= p
        cnt += 1
    if cnt:
        c.append(cnt)
if n > 1:
    c.append(1)

g = 0
for ci in c:
    g ^= ci

print('Alice' if g > 0 else 'Bob')
0