結果

問題 No.2 素因数ゲーム
コンテスト
ユーザー ixmel
提出日時 2017-03-30 19:33:20
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 23 ms / 5,000 ms
+ 307µs
コード長 174 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 62 ms
コンパイル使用メモリ 14,848 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2026-10-08 07:35:15
合計ジャッジ時間 2,269 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import math as mas
n=int(input())
out=0
for i in range(2,int(mas.sqrt(n))):
	co=0
	while n%i==0:
		co+=1
		n/=i
	out^=co
if n-1:out^=1
if out:print("Alice")
else:print("Bob")
0