結果

問題 No.2 素因数ゲーム
ユーザー tabataba
提出日時 2016-04-12 19:22:39
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 207 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 13,212 KB
最終ジャッジ日時 2024-04-15 00:44:21
合計ジャッジ時間 16,161 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,816 KB
testcase_01 AC 11 ms
6,944 KB
testcase_02 AC 12 ms
6,944 KB
testcase_03 AC 12 ms
6,940 KB
testcase_04 AC 12 ms
6,940 KB
testcase_05 AC 11 ms
6,944 KB
testcase_06 AC 12 ms
6,940 KB
testcase_07 AC 12 ms
6,940 KB
testcase_08 AC 255 ms
6,944 KB
testcase_09 AC 12 ms
6,948 KB
testcase_10 AC 14 ms
6,940 KB
testcase_11 AC 14 ms
6,944 KB
testcase_12 AC 12 ms
6,944 KB
testcase_13 AC 12 ms
6,944 KB
testcase_14 AC 15 ms
6,940 KB
testcase_15 AC 13 ms
6,944 KB
testcase_16 AC 13 ms
6,944 KB
testcase_17 AC 40 ms
6,944 KB
testcase_18 AC 12 ms
6,944 KB
testcase_19 TLE -
testcase_20 AC 3,406 ms
6,940 KB
testcase_21 TLE -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=input()
o=[]
t=2
while n!=1:
	if n%t==0:
		n/=t
		o+=[t]
	else:
		t+=(2,1)[t==2]
p=[]
while len(o)>0:
	p+=[o.count(o[0])]
	for _ in[0]*p[-1]:o.remove(o[0])
print["Alice","Bob"][reduce(lambda a,b:a^b,p)==0]
0