結果
問題 | No.2 素因数ゲーム |
ユーザー |
|
提出日時 | 2016-07-06 09:45:52 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 17 ms / 5,000 ms |
コード長 | 213 bytes |
コンパイル時間 | 765 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-12-26 12:34:40 |
合計ジャッジ時間 | 2,721 ms |
ジャッジサーバー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"