結果

問題 No.2 素因数ゲーム
ユーザー IgrmiIgrmi
提出日時 2021-06-19 23:46:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 296 bytes
コンパイル時間 424 ms
コンパイル使用メモリ 87,332 KB
実行使用メモリ 76,852 KB
最終ジャッジ日時 2023-09-05 01:15:48
合計ジャッジ時間 4,207 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
76,312 KB
testcase_01 AC 82 ms
76,496 KB
testcase_02 AC 78 ms
76,644 KB
testcase_03 AC 79 ms
76,560 KB
testcase_04 AC 79 ms
76,532 KB
testcase_05 AC 77 ms
76,560 KB
testcase_06 AC 79 ms
76,328 KB
testcase_07 AC 79 ms
76,540 KB
testcase_08 AC 79 ms
76,468 KB
testcase_09 AC 78 ms
76,536 KB
testcase_10 AC 79 ms
76,524 KB
testcase_11 AC 78 ms
76,464 KB
testcase_12 AC 78 ms
76,484 KB
testcase_13 AC 78 ms
76,444 KB
testcase_14 AC 77 ms
76,488 KB
testcase_15 AC 77 ms
76,412 KB
testcase_16 AC 77 ms
76,608 KB
testcase_17 AC 79 ms
76,476 KB
testcase_18 AC 78 ms
76,464 KB
testcase_19 AC 78 ms
76,484 KB
testcase_20 AC 78 ms
76,552 KB
testcase_21 AC 79 ms
76,524 KB
testcase_22 AC 78 ms
76,468 KB
testcase_23 AC 79 ms
76,852 KB
testcase_24 AC 80 ms
76,128 KB
testcase_25 AC 78 ms
76,520 KB
testcase_26 AC 79 ms
76,524 KB
testcase_27 AC 78 ms
76,596 KB
testcase_28 AC 78 ms
76,820 KB
testcase_29 AC 80 ms
76,536 KB
testcase_30 AC 79 ms
76,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
Num = [i for i in range(10001)]
Ans = 0
for i in range(2, 10001):
    if i != Num[i]: continue
    P = 0
    while N % i == 0:
        N //= i
        P += 1
    Ans ^= P
    for j in range(i + i, 10001, i):
        Num[j] = 0
if N != 1: Ans ^= 1
print('Alice' if Ans else 'Bob')
0