結果

問題 No.2 素因数ゲーム
ユーザー taba
提出日時 2016-04-12 19:22:39
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 207 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 13,092 KB
最終ジャッジ日時 2024-10-04 07:22:24
合計ジャッジ時間 16,038 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 TLE * 2 -- * 9
権限があれば一括ダウンロードができます

ソースコード

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