結果

問題 No.2059 Odd Move Nim
ユーザー hir355hir355
提出日時 2022-08-12 19:43:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 82,396 KB
実行使用メモリ 102,328 KB
最終ジャッジ日時 2024-04-23 11:08:46
合計ジャッジ時間 2,825 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,200 KB
testcase_01 AC 36 ms
53,336 KB
testcase_02 AC 38 ms
52,284 KB
testcase_03 AC 37 ms
52,128 KB
testcase_04 AC 38 ms
53,624 KB
testcase_05 AC 37 ms
53,228 KB
testcase_06 AC 39 ms
52,640 KB
testcase_07 AC 39 ms
52,644 KB
testcase_08 AC 38 ms
52,456 KB
testcase_09 AC 38 ms
53,620 KB
testcase_10 AC 38 ms
52,416 KB
testcase_11 AC 38 ms
52,492 KB
testcase_12 AC 96 ms
102,288 KB
testcase_13 AC 95 ms
102,268 KB
testcase_14 AC 95 ms
102,024 KB
testcase_15 AC 95 ms
102,236 KB
testcase_16 AC 93 ms
101,988 KB
testcase_17 AC 95 ms
102,284 KB
testcase_18 AC 94 ms
102,248 KB
testcase_19 AC 93 ms
102,328 KB
testcase_20 AC 94 ms
102,268 KB
testcase_21 AC 95 ms
102,096 KB
testcase_22 AC 38 ms
53,004 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