結果

問題 No.2 素因数ゲーム
ユーザー IgrmiIgrmi
提出日時 2021-06-19 23:44:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 87,308 KB
実行使用メモリ 77,004 KB
最終ジャッジ日時 2023-09-05 01:15:44
合計ジャッジ時間 4,196 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
76,396 KB
testcase_01 AC 80 ms
76,744 KB
testcase_02 AC 81 ms
76,512 KB
testcase_03 AC 80 ms
76,400 KB
testcase_04 AC 83 ms
76,816 KB
testcase_05 AC 80 ms
76,936 KB
testcase_06 AC 81 ms
76,532 KB
testcase_07 AC 80 ms
76,752 KB
testcase_08 WA -
testcase_09 AC 81 ms
76,820 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 80 ms
76,704 KB
testcase_13 AC 80 ms
76,476 KB
testcase_14 AC 79 ms
76,804 KB
testcase_15 AC 81 ms
76,768 KB
testcase_16 WA -
testcase_17 AC 80 ms
76,468 KB
testcase_18 AC 82 ms
76,708 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 78 ms
76,696 KB
testcase_27 AC 80 ms
76,680 KB
testcase_28 AC 81 ms
76,916 KB
testcase_29 AC 80 ms
76,796 KB
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

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
print('Alice' if Ans else 'Bob')
0