結果

問題 No.2 素因数ゲーム
ユーザー kenntinkenntin
提出日時 2019-11-01 18:46:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 586 bytes
コンパイル時間 689 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 75,928 KB
最終ジャッジ日時 2023-10-13 00:55:29
合計ジャッジ時間 4,567 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,988 KB
testcase_01 AC 73 ms
71,612 KB
testcase_02 AC 73 ms
71,648 KB
testcase_03 AC 72 ms
71,904 KB
testcase_04 AC 72 ms
71,656 KB
testcase_05 AC 72 ms
71,644 KB
testcase_06 AC 74 ms
75,840 KB
testcase_07 AC 75 ms
75,540 KB
testcase_08 AC 74 ms
75,740 KB
testcase_09 AC 74 ms
75,780 KB
testcase_10 AC 75 ms
75,840 KB
testcase_11 AC 75 ms
75,792 KB
testcase_12 AC 74 ms
75,632 KB
testcase_13 AC 75 ms
75,560 KB
testcase_14 AC 74 ms
75,484 KB
testcase_15 AC 75 ms
75,928 KB
testcase_16 AC 76 ms
75,836 KB
testcase_17 AC 76 ms
75,488 KB
testcase_18 AC 75 ms
75,536 KB
testcase_19 AC 76 ms
75,620 KB
testcase_20 AC 75 ms
75,684 KB
testcase_21 AC 76 ms
75,488 KB
testcase_22 AC 76 ms
75,620 KB
testcase_23 AC 75 ms
75,720 KB
testcase_24 AC 76 ms
75,564 KB
testcase_25 AC 77 ms
75,772 KB
testcase_26 AC 76 ms
75,716 KB
testcase_27 AC 75 ms
75,560 KB
testcase_28 AC 77 ms
75,772 KB
testcase_29 AC 76 ms
75,680 KB
testcase_30 AC 75 ms
75,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
def pff(m):
    pf = {}
    for i in range(2, int(m ** 0.5) + 1):
        while m % i == 0:
            pf[i] = pf.get(i, 0) + 1
            m //= i
    if m > 1: pf[m] = 1
    return pf
#################################
import sys
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
mod = 10**9 + 7
inf = float('inf')

N =I()
T = []
#print(pff(N))
game = pff(N)

for i in game.values():
    T.append(i)

#print(T)
judge = int(0)
for i in T:
    judge ^= i

if judge==0:
    ans = "Bob"
else:
    ans = "Alice"
print(ans)
0