結果

問題 No.2059 Odd Move Nim
ユーザー shotoyooshotoyoo
提出日時 2022-08-26 21:56:38
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 147 ms / 2,000 ms
コード長 677 bytes
コンパイル時間 497 ms
コンパイル使用メモリ 87,044 KB
実行使用メモリ 110,948 KB
最終ジャッジ日時 2023-08-05 13:58:42
合計ジャッジ時間 4,944 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
72,404 KB
testcase_01 AC 89 ms
72,200 KB
testcase_02 AC 89 ms
71,968 KB
testcase_03 AC 91 ms
72,132 KB
testcase_04 AC 93 ms
72,236 KB
testcase_05 AC 95 ms
72,044 KB
testcase_06 AC 93 ms
71,876 KB
testcase_07 AC 93 ms
72,144 KB
testcase_08 AC 95 ms
72,136 KB
testcase_09 AC 93 ms
72,220 KB
testcase_10 AC 93 ms
72,068 KB
testcase_11 AC 92 ms
72,072 KB
testcase_12 AC 147 ms
110,456 KB
testcase_13 AC 146 ms
110,948 KB
testcase_14 AC 146 ms
110,620 KB
testcase_15 AC 146 ms
110,608 KB
testcase_16 AC 142 ms
110,476 KB
testcase_17 AC 143 ms
110,708 KB
testcase_18 AC 143 ms
110,728 KB
testcase_19 AC 140 ms
110,480 KB
testcase_20 AC 145 ms
110,664 KB
testcase_21 AC 142 ms
110,452 KB
testcase_22 AC 93 ms
71,916 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