結果
| 問題 | No.103 素因数ゲーム リターンズ | 
| コンテスト | |
| ユーザー |  とりゐ | 
| 提出日時 | 2022-01-03 23:20:11 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 246 bytes | 
| コンパイル時間 | 263 ms | 
| コンパイル使用メモリ | 82,244 KB | 
| 実行使用メモリ | 60,008 KB | 
| 最終ジャッジ日時 | 2024-10-13 12:07:50 | 
| 合計ジャッジ時間 | 2,045 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 WA * 1 | 
| other | AC * 13 WA * 7 | 
ソースコード
n=int(input())
xor=0
m=list(map(int,input().split()))
for i in m:
  tmp=i
  for j in range(2,i+1):
    if tmp%j==0:
      cnt=0
      while tmp%i==0:
        cnt+=1
        tmp//=i
      xor^=cnt%3
if xor==0:
  print('Bob')
else:
  print('Alice')
            
            
            
        