結果
| 問題 |
No.2059 Odd Move Nim
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-26 22:58:31 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 117 ms / 2,000 ms |
| コード長 | 430 bytes |
| コンパイル時間 | 186 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 102,740 KB |
| 最終ジャッジ日時 | 2024-10-15 11:08:08 |
| 合計ジャッジ時間 | 3,211 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 |
ソースコード
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")