結果

問題 No.1456 Range Xor
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-08 11:20:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 326 ms
コンパイル使用メモリ 87,164 KB
実行使用メモリ 112,276 KB
最終ジャッジ日時 2023-08-26 16:22:30
合計ジャッジ時間 6,968 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,404 KB
testcase_01 AC 71 ms
71,548 KB
testcase_02 AC 69 ms
71,540 KB
testcase_03 AC 116 ms
112,140 KB
testcase_04 AC 112 ms
112,256 KB
testcase_05 AC 111 ms
111,988 KB
testcase_06 AC 115 ms
112,276 KB
testcase_07 AC 115 ms
112,248 KB
testcase_08 AC 113 ms
112,040 KB
testcase_09 AC 113 ms
112,252 KB
testcase_10 AC 111 ms
111,960 KB
testcase_11 AC 81 ms
79,228 KB
testcase_12 AC 77 ms
76,564 KB
testcase_13 AC 86 ms
84,132 KB
testcase_14 AC 85 ms
84,108 KB
testcase_15 AC 108 ms
106,824 KB
testcase_16 AC 105 ms
103,652 KB
testcase_17 AC 92 ms
88,972 KB
testcase_18 AC 87 ms
84,076 KB
testcase_19 AC 99 ms
97,420 KB
testcase_20 AC 105 ms
103,756 KB
testcase_21 AC 96 ms
97,136 KB
testcase_22 AC 98 ms
97,288 KB
testcase_23 AC 86 ms
85,304 KB
testcase_24 AC 80 ms
77,836 KB
testcase_25 AC 84 ms
82,716 KB
testcase_26 AC 92 ms
92,300 KB
testcase_27 AC 100 ms
100,248 KB
testcase_28 AC 81 ms
81,404 KB
testcase_29 AC 110 ms
107,752 KB
testcase_30 AC 112 ms
111,760 KB
testcase_31 AC 84 ms
80,440 KB
testcase_32 AC 81 ms
79,580 KB
testcase_33 AC 88 ms
87,156 KB
testcase_34 AC 111 ms
110,932 KB
testcase_35 AC 91 ms
92,280 KB
testcase_36 AC 112 ms
112,008 KB
testcase_37 AC 110 ms
107,592 KB
testcase_38 AC 81 ms
78,052 KB
testcase_39 AC 102 ms
100,328 KB
testcase_40 AC 110 ms
100,464 KB
testcase_41 AC 76 ms
76,716 KB
testcase_42 AC 78 ms
77,004 KB
testcase_43 AC 72 ms
71,492 KB
testcase_44 AC 70 ms
71,360 KB
testcase_45 AC 68 ms
71,164 KB
testcase_46 AC 68 ms
71,360 KB
testcase_47 AC 69 ms
71,364 KB
testcase_48 AC 69 ms
71,364 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])
A_set = set(A)
for i in range(len(A)):
    if A[i] ^ k in A_set:
        print("Yes")
        exit()
print("No")
0