結果

問題 No.1456 Range Xor
ユーザー あかりきあかりき
提出日時 2021-04-13 17:17:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,308 KB
実行使用メモリ 109,132 KB
最終ジャッジ日時 2023-09-12 09:36:51
合計ジャッジ時間 7,324 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,328 KB
testcase_01 AC 73 ms
71,140 KB
testcase_02 AC 73 ms
71,416 KB
testcase_03 AC 114 ms
98,288 KB
testcase_04 AC 108 ms
100,196 KB
testcase_05 AC 117 ms
106,644 KB
testcase_06 AC 107 ms
98,784 KB
testcase_07 AC 118 ms
109,132 KB
testcase_08 AC 112 ms
104,964 KB
testcase_09 AC 106 ms
99,100 KB
testcase_10 AC 110 ms
101,204 KB
testcase_11 AC 85 ms
79,444 KB
testcase_12 AC 80 ms
76,492 KB
testcase_13 AC 89 ms
84,024 KB
testcase_14 AC 85 ms
81,504 KB
testcase_15 AC 101 ms
94,212 KB
testcase_16 AC 103 ms
96,300 KB
testcase_17 AC 94 ms
88,960 KB
testcase_18 AC 86 ms
80,744 KB
testcase_19 AC 99 ms
93,736 KB
testcase_20 AC 103 ms
96,888 KB
testcase_21 AC 96 ms
90,728 KB
testcase_22 AC 94 ms
89,188 KB
testcase_23 AC 89 ms
84,420 KB
testcase_24 AC 82 ms
77,912 KB
testcase_25 AC 88 ms
82,488 KB
testcase_26 AC 99 ms
92,184 KB
testcase_27 AC 100 ms
94,056 KB
testcase_28 AC 86 ms
81,552 KB
testcase_29 AC 115 ms
107,812 KB
testcase_30 AC 110 ms
101,904 KB
testcase_31 AC 86 ms
80,564 KB
testcase_32 AC 84 ms
79,380 KB
testcase_33 AC 92 ms
85,492 KB
testcase_34 AC 113 ms
103,792 KB
testcase_35 AC 96 ms
89,112 KB
testcase_36 AC 111 ms
102,176 KB
testcase_37 AC 119 ms
107,400 KB
testcase_38 AC 83 ms
78,228 KB
testcase_39 AC 99 ms
92,264 KB
testcase_40 AC 107 ms
99,040 KB
testcase_41 AC 80 ms
76,548 KB
testcase_42 AC 80 ms
76,992 KB
testcase_43 AC 73 ms
71,496 KB
testcase_44 AC 72 ms
71,344 KB
testcase_45 AC 74 ms
71,132 KB
testcase_46 AC 75 ms
71,132 KB
testcase_47 AC 74 ms
71,240 KB
testcase_48 AC 75 ms
71,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a=list(map(int,input().split()))

A=[0]
for i in range(n):
  A.append(A[-1]^a[i])

A2=set()
for i in range(len(A)):
  if A[i]^k in A2:
    print('Yes')
    exit()
  A2.add(A[i])
print('No')
0