結果
問題 | No.103 素因数ゲーム リターンズ |
ユーザー |
|
提出日時 | 2016-12-27 08:42:28 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 254 ms / 5,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 1,249 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-15 01:46:04 |
合計ジャッジ時間 | 3,146 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 20 |
ソースコード
#yuki_103 n=int(raw_input()) m=map(int,raw_input().split()) res=0 for i in xrange(n): for j in xrange(2,m[i]+1): cnt=0 while m[i]%j==0: cnt+=1 m[i]/=j res^=cnt%3 if res==0: print 'Bob' else: print 'Alice'