結果

問題 No.1456 Range Xor
ユーザー あかりきあかりき
提出日時 2021-04-13 17:03:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 87,004 KB
実行使用メモリ 112,280 KB
最終ジャッジ日時 2023-09-12 09:20:26
合計ジャッジ時間 8,617 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,524 KB
testcase_01 AC 73 ms
71,660 KB
testcase_02 AC 73 ms
71,356 KB
testcase_03 AC 125 ms
111,956 KB
testcase_04 AC 119 ms
112,180 KB
testcase_05 AC 119 ms
112,140 KB
testcase_06 AC 119 ms
112,100 KB
testcase_07 AC 121 ms
112,220 KB
testcase_08 AC 120 ms
112,276 KB
testcase_09 AC 119 ms
112,280 KB
testcase_10 AC 116 ms
111,844 KB
testcase_11 AC 84 ms
79,380 KB
testcase_12 AC 80 ms
76,472 KB
testcase_13 AC 89 ms
83,916 KB
testcase_14 AC 90 ms
84,064 KB
testcase_15 AC 114 ms
106,656 KB
testcase_16 AC 110 ms
103,724 KB
testcase_17 AC 94 ms
88,960 KB
testcase_18 AC 88 ms
84,056 KB
testcase_19 AC 103 ms
97,220 KB
testcase_20 AC 108 ms
103,468 KB
testcase_21 AC 101 ms
96,988 KB
testcase_22 AC 101 ms
97,312 KB
testcase_23 AC 90 ms
85,396 KB
testcase_24 AC 83 ms
77,968 KB
testcase_25 AC 89 ms
82,456 KB
testcase_26 AC 97 ms
91,980 KB
testcase_27 AC 106 ms
100,040 KB
testcase_28 AC 85 ms
81,356 KB
testcase_29 AC 118 ms
107,924 KB
testcase_30 AC 119 ms
111,852 KB
testcase_31 AC 85 ms
80,268 KB
testcase_32 AC 85 ms
79,548 KB
testcase_33 AC 93 ms
87,112 KB
testcase_34 AC 117 ms
110,968 KB
testcase_35 AC 97 ms
92,100 KB
testcase_36 AC 118 ms
111,992 KB
testcase_37 AC 117 ms
107,376 KB
testcase_38 AC 82 ms
77,796 KB
testcase_39 AC 107 ms
100,608 KB
testcase_40 AC 109 ms
100,480 KB
testcase_41 AC 77 ms
76,508 KB
testcase_42 AC 81 ms
76,864 KB
testcase_43 AC 76 ms
71,304 KB
testcase_44 AC 73 ms
71,200 KB
testcase_45 AC 73 ms
71,552 KB
testcase_46 AC 74 ms
71,540 KB
testcase_47 AC 73 ms
71,360 KB
testcase_48 AC 73 ms
71,308 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(A)
for i in range(len(A)):
  if A[i]^k in A2:
    print('Yes')
    exit()
print('No')
0