結果

問題 No.2672 Subset Xor Sum
ユーザー mkawa2mkawa2
提出日時 2024-03-15 21:41:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 1,046 bytes
コンパイル時間 3,161 ms
コンパイル使用メモリ 81,444 KB
実行使用メモリ 144,792 KB
最終ジャッジ日時 2024-03-15 21:42:00
合計ジャッジ時間 6,635 ms
ジャッジサーバーID
(参考情報)
judge13 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
55,480 KB
testcase_01 AC 41 ms
55,480 KB
testcase_02 AC 48 ms
62,096 KB
testcase_03 AC 52 ms
62,096 KB
testcase_04 AC 47 ms
62,096 KB
testcase_05 AC 47 ms
62,096 KB
testcase_06 AC 42 ms
55,608 KB
testcase_07 AC 42 ms
55,608 KB
testcase_08 AC 42 ms
55,608 KB
testcase_09 AC 85 ms
62,096 KB
testcase_10 AC 49 ms
62,092 KB
testcase_11 AC 42 ms
55,608 KB
testcase_12 AC 41 ms
55,608 KB
testcase_13 AC 41 ms
55,608 KB
testcase_14 AC 42 ms
55,608 KB
testcase_15 AC 71 ms
55,608 KB
testcase_16 AC 42 ms
55,608 KB
testcase_17 AC 42 ms
55,608 KB
testcase_18 AC 42 ms
55,608 KB
testcase_19 AC 43 ms
55,608 KB
testcase_20 AC 42 ms
55,608 KB
testcase_21 AC 55 ms
55,608 KB
testcase_22 AC 42 ms
55,608 KB
testcase_23 AC 51 ms
62,096 KB
testcase_24 AC 51 ms
62,096 KB
testcase_25 AC 47 ms
62,216 KB
testcase_26 AC 47 ms
62,216 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 42 ms
55,608 KB
testcase_30 AC 138 ms
135,068 KB
testcase_31 AC 80 ms
98,108 KB
testcase_32 WA -
testcase_33 AC 115 ms
111,964 KB
testcase_34 WA -
testcase_35 AC 123 ms
119,692 KB
testcase_36 AC 129 ms
125,796 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 106 ms
106,520 KB
testcase_41 WA -
testcase_42 AC 117 ms
111,820 KB
testcase_43 WA -
testcase_44 AC 116 ms
110,208 KB
testcase_45 AC 45 ms
62,032 KB
testcase_46 AC 50 ms
64,684 KB
testcase_47 WA -
testcase_48 AC 48 ms
62,032 KB
testcase_49 AC 45 ms
62,032 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 AC 63 ms
64,556 KB
testcase_54 WA -
testcase_55 WA -
testcase_56 AC 46 ms
62,036 KB
testcase_57 AC 49 ms
62,468 KB
testcase_58 AC 41 ms
55,608 KB
testcase_59 AC 47 ms
62,044 KB
testcase_60 AC 46 ms
62,084 KB
testcase_61 WA -
testcase_62 AC 48 ms
62,460 KB
testcase_63 WA -
testcase_64 WA -
testcase_65 AC 42 ms
55,608 KB
testcase_66 AC 43 ms
55,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

# sys.setrecursionlimit(1000005)
# sys.set_int_max_str_digits(200005)
int1 = lambda x: int(x)-1
pDB = lambda *x: print(*x, end="\n", file=sys.stderr)
p2D = lambda x: print(*x, sep="\n", end="\n\n", file=sys.stderr)
def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
def SI(): return sys.stdin.readline().rstrip()

dij = [(0, 1), (-1, 0), (0, -1), (1, 0)]
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)]
# inf = -1-(-1 << 31)
inf = -1-(-1 << 62)

# md = 10**9+7
md = 998244353

from collections import Counter

n=II()
aa=LI()

x=0
for a in aa:x^=1
if x:
    print("No")
    exit()

cnt=Counter()
cnt[0]=1
for i,a in enumerate(aa):
    if a in cnt and (i<n-1 or cnt[a]>1):
        print("Yes")
        exit()
    for b in list(cnt):cnt[a^b]+=1

print("No")
0