結果

問題 No.2059 Odd Move Nim
ユーザー flygonflygon
提出日時 2022-09-19 17:24:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 200 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 102,144 KB
最終ジャッジ日時 2024-12-22 02:32:33
合計ジャッジ時間 3,688 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))
c = 0
for i in range(2,n+1):
  ai = a[i-1]
  if i % 2 == 1:
    c += ai*2 
  else:
    c += ai 
if c % 2 == 1:
  print("Alice")
else:
  print("Bob")
0