結果
| 問題 | No.2 素因数ゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-07-06 09:45:52 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 77 ms / 5,000 ms |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 285 ms |
| コンパイル使用メモリ | 77,416 KB |
| 最終ジャッジ日時 | 2025-12-03 20:56:40 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
#coding: utf-8 #yuki_002 import math n=int(raw_input()) nim=0 for i in xrange(2,int(math.sqrt(n))+1): cnt=0 while n%i==0: cnt+=1 n/=i nim^=cnt if n>1: nim^=1 if nim==0: print "Bob" else: print "Alice"