結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,236 KB
testcase_01 AC 70 ms
71,248 KB
testcase_02 AC 70 ms
71,324 KB
testcase_03 AC 69 ms
71,292 KB
testcase_04 AC 68 ms
71,060 KB
testcase_05 AC 69 ms
71,240 KB
testcase_06 AC 69 ms
71,148 KB
testcase_07 AC 71 ms
71,320 KB
testcase_08 AC 69 ms
71,256 KB
testcase_09 AC 69 ms
71,296 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 125 ms
100,192 KB
testcase_14 AC 124 ms
100,220 KB
testcase_15 AC 127 ms
100,432 KB
testcase_16 AC 125 ms
100,324 KB
testcase_17 AC 125 ms
100,616 KB
testcase_18 AC 124 ms
100,460 KB
testcase_19 AC 123 ms
100,432 KB
testcase_20 AC 123 ms
100,432 KB
testcase_21 AC 124 ms
100,520 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

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