結果

問題 No.1456 Range Xor
ユーザー 萩3萩3
提出日時 2021-04-30 19:27:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 327 bytes
コンパイル時間 920 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 122,204 KB
最終ジャッジ日時 2023-09-25 21:03:06
合計ジャッジ時間 9,501 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
70,920 KB
testcase_01 AC 74 ms
71,104 KB
testcase_02 AC 71 ms
71,160 KB
testcase_03 AC 142 ms
122,040 KB
testcase_04 AC 131 ms
121,984 KB
testcase_05 AC 132 ms
121,988 KB
testcase_06 AC 131 ms
122,204 KB
testcase_07 AC 136 ms
122,112 KB
testcase_08 AC 131 ms
121,868 KB
testcase_09 AC 131 ms
122,024 KB
testcase_10 AC 128 ms
122,000 KB
testcase_11 AC 83 ms
80,812 KB
testcase_12 AC 79 ms
76,224 KB
testcase_13 AC 89 ms
86,696 KB
testcase_14 AC 89 ms
86,544 KB
testcase_15 AC 126 ms
115,988 KB
testcase_16 AC 116 ms
111,712 KB
testcase_17 AC 96 ms
92,904 KB
testcase_18 AC 88 ms
86,684 KB
testcase_19 AC 107 ms
103,844 KB
testcase_20 AC 119 ms
111,384 KB
testcase_21 AC 108 ms
103,808 KB
testcase_22 AC 110 ms
104,064 KB
testcase_23 AC 93 ms
88,520 KB
testcase_24 AC 83 ms
79,036 KB
testcase_25 AC 89 ms
85,152 KB
testcase_26 AC 103 ms
97,244 KB
testcase_27 AC 112 ms
107,372 KB
testcase_28 AC 87 ms
83,348 KB
testcase_29 AC 125 ms
116,740 KB
testcase_30 AC 132 ms
121,644 KB
testcase_31 AC 88 ms
82,144 KB
testcase_32 AC 83 ms
81,028 KB
testcase_33 AC 95 ms
90,592 KB
testcase_34 AC 131 ms
121,384 KB
testcase_35 AC 100 ms
97,528 KB
testcase_36 AC 132 ms
121,776 KB
testcase_37 AC 124 ms
116,284 KB
testcase_38 AC 86 ms
78,904 KB
testcase_39 AC 117 ms
107,628 KB
testcase_40 AC 114 ms
107,704 KB
testcase_41 AC 77 ms
75,980 KB
testcase_42 AC 78 ms
77,124 KB
testcase_43 WA -
testcase_44 AC 74 ms
70,920 KB
testcase_45 AC 74 ms
71,068 KB
testcase_46 AC 71 ms
70,996 KB
testcase_47 WA -
testcase_48 AC 73 ms
71,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
def str1d():return sys.stdin.read().splitlines()
def int2d():return [list(map(int,s.split())) for s in str1d()]
inp = int2d()
n,k=inp[0]
tmp = 0
xorset = set()
kxorset = set()
for a in inp[1]:
    tmp ^= a
    xorset.add(tmp)
    kxorset.add(tmp^k)

if len(xorset & kxorset)>0:
    print('Yes')
else:
    print('No')
0