結果

問題 No.2059 Odd Move Nim
ユーザー flygonflygon
提出日時 2022-09-19 17:54:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 188 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 87,008 KB
実行使用メモリ 100,496 KB
最終ジャッジ日時 2023-08-23 18:59:24
合計ジャッジ時間 3,755 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,296 KB
testcase_01 AC 69 ms
71,176 KB
testcase_02 AC 69 ms
71,172 KB
testcase_03 AC 68 ms
71,296 KB
testcase_04 AC 71 ms
71,264 KB
testcase_05 AC 70 ms
71,300 KB
testcase_06 AC 72 ms
71,296 KB
testcase_07 AC 70 ms
71,300 KB
testcase_08 AC 69 ms
71,088 KB
testcase_09 AC 70 ms
71,276 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 121 ms
100,416 KB
testcase_14 AC 122 ms
100,448 KB
testcase_15 AC 126 ms
100,496 KB
testcase_16 AC 123 ms
100,332 KB
testcase_17 AC 121 ms
100,324 KB
testcase_18 AC 124 ms
100,340 KB
testcase_19 AC 122 ms
100,360 KB
testcase_20 AC 124 ms
100,336 KB
testcase_21 AC 124 ms
100,432 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

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