結果

問題 No.2059 Odd Move Nim
ユーザー 👑 rin204rin204
提出日時 2022-08-26 22:14:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,576 KB
実行使用メモリ 102,196 KB
最終ジャッジ日時 2024-04-23 11:10:50
合計ジャッジ時間 2,573 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
51,996 KB
testcase_01 AC 35 ms
52,072 KB
testcase_02 AC 34 ms
53,852 KB
testcase_03 AC 32 ms
52,200 KB
testcase_04 AC 33 ms
53,684 KB
testcase_05 AC 37 ms
52,272 KB
testcase_06 AC 32 ms
52,204 KB
testcase_07 AC 33 ms
52,580 KB
testcase_08 AC 34 ms
52,540 KB
testcase_09 AC 32 ms
51,780 KB
testcase_10 AC 34 ms
52,340 KB
testcase_11 AC 33 ms
51,996 KB
testcase_12 AC 86 ms
101,936 KB
testcase_13 AC 86 ms
102,160 KB
testcase_14 AC 86 ms
102,024 KB
testcase_15 AC 87 ms
102,056 KB
testcase_16 AC 90 ms
101,908 KB
testcase_17 AC 92 ms
101,996 KB
testcase_18 AC 88 ms
102,100 KB
testcase_19 AC 89 ms
102,196 KB
testcase_20 AC 86 ms
102,064 KB
testcase_21 AC 87 ms
102,172 KB
testcase_22 AC 33 ms
52,952 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