結果

問題 No.2 素因数ゲーム
ユーザー dango
提出日時 2023-06-14 21:24:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 5,000 ms
コード長 169 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 58,240 KB
最終ジャッジ日時 2024-06-23 03:21:55
合計ジャッジ時間 2,658 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
i = 2
while i ** 2 <= 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