結果

問題 No.2 素因数ゲーム
ユーザー こるこる
提出日時 2017-01-04 02:34:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 218 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 169,360 KB
最終ジャッジ日時 2023-08-22 10:41:17
合計ジャッジ時間 9,141 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,952 KB
testcase_01 AC 15 ms
7,760 KB
testcase_02 AC 15 ms
7,800 KB
testcase_03 AC 15 ms
7,800 KB
testcase_04 AC 15 ms
7,744 KB
testcase_05 AC 15 ms
7,820 KB
testcase_06 AC 15 ms
7,740 KB
testcase_07 AC 15 ms
7,740 KB
testcase_08 AC 1,194 ms
28,408 KB
testcase_09 AC 15 ms
7,832 KB
testcase_10 AC 25 ms
8,348 KB
testcase_11 AC 30 ms
8,408 KB
testcase_12 AC 15 ms
7,908 KB
testcase_13 AC 15 ms
7,816 KB
testcase_14 AC 27 ms
8,164 KB
testcase_15 AC 19 ms
7,844 KB
testcase_16 AC 24 ms
8,280 KB
testcase_17 AC 150 ms
10,516 KB
testcase_18 AC 16 ms
7,836 KB
testcase_19 TLE -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
root=n
i=2
dabri=False
sum=[]
while n!=1:
    count=0
    while n%i==0:
        count+=1
        n/=i
    sum.append(count)
    i+=1

temp=0
for i in sum:
    temp^=i
print("Bob" if temp==0 else "Alice")
0