結果

問題 No.2059 Odd Move Nim
ユーザー shotoyooshotoyoo
提出日時 2022-08-26 21:56:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 677 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 100,480 KB
最終ジャッジ日時 2024-04-23 11:09:38
合計ジャッジ時間 2,752 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
54,016 KB
testcase_01 AC 35 ms
53,976 KB
testcase_02 AC 36 ms
54,016 KB
testcase_03 AC 40 ms
54,016 KB
testcase_04 AC 35 ms
54,144 KB
testcase_05 AC 36 ms
54,016 KB
testcase_06 AC 35 ms
54,016 KB
testcase_07 AC 36 ms
54,144 KB
testcase_08 AC 35 ms
54,400 KB
testcase_09 AC 40 ms
53,888 KB
testcase_10 AC 40 ms
54,144 KB
testcase_11 AC 41 ms
54,016 KB
testcase_12 AC 92 ms
100,096 KB
testcase_13 AC 93 ms
100,340 KB
testcase_14 AC 95 ms
100,480 KB
testcase_15 AC 97 ms
99,968 KB
testcase_16 AC 97 ms
99,968 KB
testcase_17 AC 99 ms
100,352 KB
testcase_18 AC 99 ms
99,968 KB
testcase_19 AC 97 ms
100,292 KB
testcase_20 AC 93 ms
100,308 KB
testcase_21 AC 91 ms
100,096 KB
testcase_22 AC 37 ms
53,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, random
input = lambda : sys.stdin.readline().rstrip()


write = lambda x: sys.stdout.write(x+"\n"); writef = lambda x: print("{:.12f}".format(x))
debug = lambda x: sys.stderr.write(x+"\n")
YES="Yes"; NO="No"; pans = lambda v: print(YES if v else NO); INF=10**18
LI = lambda : list(map(int, input().split())); II=lambda : int(input())
def debug(_l_):
    for s in _l_.split():
        print(f"{s}={eval(s)}", end=" ")
    print()
def dlist(*l, fill=0):
    if len(l)==1:
        return [fill]*l[0]
    ll = l[1:]
    return [dlist(*ll, fill=fill) for _ in range(l[0])]

n = II()
a = LI()
x = 0
for i in range(1,n,2):
    x ^= a[i]
YES = "Alice"
NO = "Bob"
pans(x!=0)
0