結果

問題 No.1456 Range Xor
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-03-31 21:09:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 102,812 KB
最終ジャッジ日時 2023-08-21 20:43:07
合計ジャッジ時間 6,761 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,312 KB
testcase_01 AC 71 ms
71,244 KB
testcase_02 AC 72 ms
70,856 KB
testcase_03 AC 100 ms
91,948 KB
testcase_04 AC 99 ms
93,864 KB
testcase_05 AC 107 ms
100,236 KB
testcase_06 AC 96 ms
92,164 KB
testcase_07 AC 109 ms
102,812 KB
testcase_08 AC 102 ms
98,364 KB
testcase_09 AC 97 ms
92,688 KB
testcase_10 AC 96 ms
94,844 KB
testcase_11 AC 80 ms
79,064 KB
testcase_12 AC 75 ms
76,332 KB
testcase_13 AC 84 ms
82,760 KB
testcase_14 AC 83 ms
80,160 KB
testcase_15 AC 93 ms
89,372 KB
testcase_16 AC 95 ms
91,700 KB
testcase_17 AC 91 ms
86,612 KB
testcase_18 AC 81 ms
79,460 KB
testcase_19 AC 93 ms
89,828 KB
testcase_20 AC 94 ms
91,940 KB
testcase_21 AC 90 ms
87,204 KB
testcase_22 AC 88 ms
85,288 KB
testcase_23 AC 85 ms
82,900 KB
testcase_24 AC 78 ms
77,768 KB
testcase_25 AC 83 ms
81,712 KB
testcase_26 AC 92 ms
89,672 KB
testcase_27 AC 94 ms
90,128 KB
testcase_28 AC 81 ms
80,520 KB
testcase_29 AC 109 ms
102,460 KB
testcase_30 AC 99 ms
95,548 KB
testcase_31 AC 82 ms
79,768 KB
testcase_32 AC 80 ms
78,896 KB
testcase_33 AC 85 ms
83,528 KB
testcase_34 AC 104 ms
98,100 KB
testcase_35 AC 89 ms
86,380 KB
testcase_36 AC 101 ms
95,648 KB
testcase_37 AC 108 ms
101,988 KB
testcase_38 AC 80 ms
77,908 KB
testcase_39 AC 93 ms
87,828 KB
testcase_40 AC 100 ms
95,240 KB
testcase_41 AC 76 ms
76,492 KB
testcase_42 AC 78 ms
76,824 KB
testcase_43 AC 74 ms
70,852 KB
testcase_44 AC 70 ms
70,960 KB
testcase_45 AC 70 ms
71,056 KB
testcase_46 AC 70 ms
70,984 KB
testcase_47 AC 71 ms
71,132 KB
testcase_48 AC 71 ms
71,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

"""

import sys
from sys import stdin

N,K = map(int,input().split())

A = list(map(int,input().split()))

dic = {}
now = 0
dic[0] = 1


for i in range(N):

    now ^= A[i]

    if now ^ K in dic:
        print ("Yes")
        sys.exit()

    dic[now] = 1

print ("No")
0