結果

問題 No.2 素因数ゲーム
ユーザー tookunn_1213
提出日時 2016-08-23 14:11:31
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 166 bytes
コンパイル時間 512 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-12-26 12:39:11
合計ジャッジ時間 3,073 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
i = 2
while i * i <= N:
	c = 0
	while N % i == 0:
		c+=1
		N /= i
	ans ^= c
	i += 1
if N > 1:
	ans ^= 1
print('Bob' if ans == 0 else 'Alice')
0