結果
問題 |
No.2 素因数ゲーム
|
ユーザー |
![]() |
提出日時 | 2017-03-30 19:33:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 37 ms / 5,000 ms |
コード長 | 174 bytes |
コンパイル時間 | 468 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-26 12:56:10 |
合計ジャッジ時間 | 2,580 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
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")