結果

問題 No.2059 Odd Move Nim
ユーザー chineristACchineristAC
提出日時 2022-08-26 22:58:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 82,344 KB
実行使用メモリ 102,980 KB
最終ジャッジ日時 2024-04-23 11:12:11
合計ジャッジ時間 3,025 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
56,572 KB
testcase_01 AC 49 ms
56,728 KB
testcase_02 AC 46 ms
55,716 KB
testcase_03 AC 50 ms
55,976 KB
testcase_04 AC 47 ms
56,616 KB
testcase_05 AC 47 ms
56,512 KB
testcase_06 AC 46 ms
57,148 KB
testcase_07 AC 46 ms
56,020 KB
testcase_08 AC 46 ms
56,604 KB
testcase_09 AC 46 ms
56,388 KB
testcase_10 AC 47 ms
56,712 KB
testcase_11 AC 46 ms
57,284 KB
testcase_12 AC 104 ms
102,840 KB
testcase_13 AC 104 ms
102,712 KB
testcase_14 AC 104 ms
102,816 KB
testcase_15 AC 103 ms
102,980 KB
testcase_16 AC 102 ms
102,720 KB
testcase_17 AC 104 ms
102,836 KB
testcase_18 AC 104 ms
102,848 KB
testcase_19 AC 105 ms
102,940 KB
testcase_20 AC 106 ms
102,964 KB
testcase_21 AC 104 ms
102,828 KB
testcase_22 AC 46 ms
56,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict,Counter
from heapq import heapify,heappop,heappush
from itertools import cycle, permutations
from math import log,gcd

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N = int(input())
A = li()

g = 0
for i in range(N):
    if i&1:
        g ^= A[i]

if g == 0:
    print("Bob")
else:
    print("Alice")
0