結果

問題 No.2059 Odd Move Nim
ユーザー chineristACchineristAC
提出日時 2022-08-26 22:58:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 182 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 548 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 108,452 KB
最終ジャッジ日時 2023-08-05 14:01:48
合計ジャッジ時間 5,401 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
74,900 KB
testcase_01 AC 117 ms
74,820 KB
testcase_02 AC 117 ms
74,896 KB
testcase_03 AC 118 ms
74,640 KB
testcase_04 AC 116 ms
74,908 KB
testcase_05 AC 115 ms
74,876 KB
testcase_06 AC 117 ms
74,648 KB
testcase_07 AC 116 ms
74,848 KB
testcase_08 AC 114 ms
74,924 KB
testcase_09 AC 115 ms
74,716 KB
testcase_10 AC 120 ms
74,860 KB
testcase_11 AC 113 ms
74,720 KB
testcase_12 AC 182 ms
108,452 KB
testcase_13 AC 168 ms
108,300 KB
testcase_14 AC 167 ms
108,100 KB
testcase_15 AC 173 ms
108,180 KB
testcase_16 AC 174 ms
107,964 KB
testcase_17 AC 172 ms
108,244 KB
testcase_18 AC 167 ms
108,372 KB
testcase_19 AC 167 ms
108,128 KB
testcase_20 AC 171 ms
108,332 KB
testcase_21 AC 174 ms
108,268 KB
testcase_22 AC 115 ms
74,648 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