結果

問題 No.2059 Odd Move Nim
ユーザー flygonflygon
提出日時 2022-09-19 17:54:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 188 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 82,364 KB
実行使用メモリ 102,508 KB
最終ジャッジ日時 2024-12-22 02:32:43
合計ジャッジ時間 2,719 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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):
  if i % 2 == 1: continue
  ai = a[i-1]
  c += ai% 2

if c % 2 == 1:
  print("Alice")
else:
  print("Bob")
0