結果

問題 No.2 素因数ゲーム
ユーザー netyo715netyo715
提出日時 2021-06-29 15:45:33
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 256 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 8,900 KB
最終ジャッジ日時 2023-09-08 01:24:43
合計ジャッジ時間 2,187 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,732 KB
testcase_01 WA -
testcase_02 AC 20 ms
8,672 KB
testcase_03 AC 19 ms
8,744 KB
testcase_04 WA -
testcase_05 AC 18 ms
8,696 KB
testcase_06 AC 19 ms
8,700 KB
testcase_07 AC 18 ms
8,696 KB
testcase_08 WA -
testcase_09 AC 20 ms
8,796 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 19 ms
8,696 KB
testcase_13 AC 19 ms
8,748 KB
testcase_14 AC 18 ms
8,752 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 19 ms
8,700 KB
testcase_18 AC 20 ms
8,812 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 19 ms
8,812 KB
testcase_27 AC 18 ms
8,736 KB
testcase_28 AC 19 ms
8,704 KB
testcase_29 AC 19 ms
8,820 KB
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
N = int(input())
so = defaultdict(int)
m = N
for x in range(2, int(N**0.5)+1):
    while m%x==0:
        so[x] += 1
        m //= x

f = 0
for v in so.values():
    f ^= v

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