結果

問題 No.2059 Odd Move Nim
ユーザー flygonflygon
提出日時 2022-09-19 18:30:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 86,860 KB
実行使用メモリ 100,616 KB
最終ジャッジ日時 2023-08-23 19:02:41
合計ジャッジ時間 3,655 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,124 KB
testcase_01 AC 70 ms
71,112 KB
testcase_02 AC 70 ms
71,360 KB
testcase_03 AC 70 ms
70,928 KB
testcase_04 AC 71 ms
70,964 KB
testcase_05 AC 70 ms
71,116 KB
testcase_06 AC 71 ms
71,208 KB
testcase_07 AC 71 ms
71,120 KB
testcase_08 AC 70 ms
71,312 KB
testcase_09 AC 71 ms
71,080 KB
testcase_10 AC 70 ms
71,340 KB
testcase_11 AC 71 ms
71,116 KB
testcase_12 AC 125 ms
100,332 KB
testcase_13 AC 124 ms
100,192 KB
testcase_14 AC 122 ms
100,500 KB
testcase_15 AC 122 ms
100,504 KB
testcase_16 AC 124 ms
100,348 KB
testcase_17 AC 124 ms
100,528 KB
testcase_18 AC 123 ms
100,616 KB
testcase_19 AC 124 ms
100,572 KB
testcase_20 AC 124 ms
100,540 KB
testcase_21 AC 124 ms
100,424 KB
testcase_22 AC 70 ms
70,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))
now = 0
for i in range(1, n):
  if i % 2 == 0: continue
  now ^= a[i]
if now == 0:
  print("Bob")
else:
  print("Alice")
0