結果

問題 No.2 素因数ゲーム
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-10-10 08:39:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,427 ms / 5,000 ms
コード長 382 bytes
コンパイル時間 326 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 77,896 KB
最終ジャッジ日時 2023-09-06 09:41:12
合計ジャッジ時間 7,942 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
72,968 KB
testcase_01 AC 101 ms
73,152 KB
testcase_02 AC 105 ms
73,056 KB
testcase_03 AC 102 ms
73,008 KB
testcase_04 AC 100 ms
72,948 KB
testcase_05 AC 96 ms
72,824 KB
testcase_06 AC 98 ms
73,008 KB
testcase_07 AC 99 ms
72,792 KB
testcase_08 AC 143 ms
77,612 KB
testcase_09 AC 101 ms
73,056 KB
testcase_10 AC 102 ms
77,516 KB
testcase_11 AC 106 ms
77,484 KB
testcase_12 AC 103 ms
73,276 KB
testcase_13 AC 98 ms
73,128 KB
testcase_14 AC 100 ms
77,584 KB
testcase_15 AC 104 ms
77,528 KB
testcase_16 AC 104 ms
77,528 KB
testcase_17 AC 109 ms
77,508 KB
testcase_18 AC 103 ms
77,544 KB
testcase_19 AC 834 ms
77,404 KB
testcase_20 AC 646 ms
77,496 KB
testcase_21 AC 1,427 ms
77,572 KB
testcase_22 AC 143 ms
77,304 KB
testcase_23 AC 109 ms
77,568 KB
testcase_24 AC 109 ms
77,896 KB
testcase_25 AC 138 ms
77,264 KB
testcase_26 AC 106 ms
77,548 KB
testcase_27 AC 105 ms
77,364 KB
testcase_28 AC 102 ms
73,020 KB
testcase_29 AC 101 ms
73,088 KB
testcase_30 AC 106 ms
77,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline


N = int(input())
P = []
n = N
for i in range(2,N+1):
    if n==1:
        break
    
    while n%i==0:
        P.append(i)
        n //= i

C = Counter(P)
X = 0
for v in C.values():
    X ^= v
if X==0:
    print('Bob')
else:
    print('Alice')
0