結果

問題 No.2 素因数ゲーム
ユーザー lllllll88938494lllllll88938494
提出日時 2023-02-02 00:52:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 5,000 ms
コード長 324 bytes
コンパイル時間 493 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 77,212 KB
最終ジャッジ日時 2023-09-14 10:27:51
合計ジャッジ時間 5,156 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,892 KB
testcase_01 AC 92 ms
71,876 KB
testcase_02 AC 93 ms
71,972 KB
testcase_03 AC 93 ms
71,984 KB
testcase_04 AC 96 ms
72,064 KB
testcase_05 AC 95 ms
72,112 KB
testcase_06 AC 96 ms
77,048 KB
testcase_07 AC 100 ms
77,060 KB
testcase_08 AC 97 ms
76,828 KB
testcase_09 AC 97 ms
76,828 KB
testcase_10 AC 98 ms
77,016 KB
testcase_11 AC 97 ms
77,212 KB
testcase_12 AC 95 ms
76,784 KB
testcase_13 AC 97 ms
76,744 KB
testcase_14 AC 97 ms
76,792 KB
testcase_15 AC 100 ms
76,872 KB
testcase_16 AC 100 ms
77,028 KB
testcase_17 AC 97 ms
76,640 KB
testcase_18 AC 95 ms
76,652 KB
testcase_19 AC 97 ms
76,892 KB
testcase_20 AC 96 ms
76,740 KB
testcase_21 AC 98 ms
76,716 KB
testcase_22 AC 98 ms
76,888 KB
testcase_23 AC 98 ms
76,804 KB
testcase_24 AC 99 ms
76,832 KB
testcase_25 AC 99 ms
76,828 KB
testcase_26 AC 98 ms
76,792 KB
testcase_27 AC 97 ms
76,708 KB
testcase_28 AC 98 ms
77,020 KB
testcase_29 AC 98 ms
76,984 KB
testcase_30 AC 97 ms
76,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter 
def  p(n):
    t = []
    for i in range(2, int(n**0.5)+1):
        while n % i == 0:
            t.append(i)
            n //= i
    if n > 1:
        t.append(n)
    return t

n = int(input())
t=Counter(p(n))
ans = 0
for i,j in t.items():
    ans ^= j
print('Bob' if ans == 0 else 'Alice')
0