結果

問題 No.2059 Odd Move Nim
ユーザー hir355hir355
提出日時 2022-08-12 19:43:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 521 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 100,684 KB
最終ジャッジ日時 2023-08-05 13:57:48
合計ジャッジ時間 3,688 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
71,520 KB
testcase_01 AC 61 ms
71,184 KB
testcase_02 AC 62 ms
71,224 KB
testcase_03 AC 62 ms
71,520 KB
testcase_04 AC 63 ms
71,300 KB
testcase_05 AC 61 ms
71,540 KB
testcase_06 AC 63 ms
71,356 KB
testcase_07 AC 63 ms
71,196 KB
testcase_08 AC 64 ms
71,296 KB
testcase_09 AC 63 ms
71,592 KB
testcase_10 AC 64 ms
71,356 KB
testcase_11 AC 63 ms
71,292 KB
testcase_12 AC 112 ms
100,680 KB
testcase_13 AC 111 ms
100,484 KB
testcase_14 AC 109 ms
100,356 KB
testcase_15 AC 109 ms
100,468 KB
testcase_16 AC 109 ms
100,588 KB
testcase_17 AC 110 ms
100,320 KB
testcase_18 AC 111 ms
100,620 KB
testcase_19 AC 110 ms
100,596 KB
testcase_20 AC 107 ms
100,352 KB
testcase_21 AC 107 ms
100,684 KB
testcase_22 AC 61 ms
71,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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