結果

問題 No.1456 Range Xor
ユーザー brthyyjpbrthyyjp
提出日時 2021-04-01 14:45:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 390 ms
コンパイル使用メモリ 86,896 KB
実行使用メモリ 103,648 KB
最終ジャッジ日時 2023-08-22 18:14:04
合計ジャッジ時間 7,428 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,232 KB
testcase_01 AC 68 ms
71,268 KB
testcase_02 AC 72 ms
71,100 KB
testcase_03 AC 95 ms
92,864 KB
testcase_04 AC 98 ms
94,508 KB
testcase_05 AC 103 ms
101,136 KB
testcase_06 AC 93 ms
93,160 KB
testcase_07 AC 106 ms
103,648 KB
testcase_08 AC 103 ms
99,024 KB
testcase_09 AC 96 ms
93,656 KB
testcase_10 AC 96 ms
95,552 KB
testcase_11 AC 78 ms
79,236 KB
testcase_12 AC 75 ms
76,376 KB
testcase_13 AC 84 ms
83,064 KB
testcase_14 AC 80 ms
80,656 KB
testcase_15 AC 91 ms
89,980 KB
testcase_16 AC 93 ms
92,048 KB
testcase_17 AC 87 ms
87,176 KB
testcase_18 AC 79 ms
79,648 KB
testcase_19 AC 92 ms
90,688 KB
testcase_20 AC 94 ms
92,728 KB
testcase_21 AC 88 ms
87,632 KB
testcase_22 AC 89 ms
86,124 KB
testcase_23 AC 83 ms
83,344 KB
testcase_24 AC 77 ms
77,752 KB
testcase_25 AC 81 ms
81,932 KB
testcase_26 AC 90 ms
89,820 KB
testcase_27 AC 92 ms
90,356 KB
testcase_28 AC 82 ms
80,940 KB
testcase_29 AC 107 ms
102,936 KB
testcase_30 AC 98 ms
96,528 KB
testcase_31 AC 79 ms
80,076 KB
testcase_32 AC 78 ms
79,332 KB
testcase_33 AC 84 ms
83,928 KB
testcase_34 AC 102 ms
99,036 KB
testcase_35 AC 87 ms
86,656 KB
testcase_36 AC 99 ms
96,668 KB
testcase_37 AC 105 ms
102,784 KB
testcase_38 AC 77 ms
77,904 KB
testcase_39 AC 89 ms
88,616 KB
testcase_40 AC 98 ms
95,872 KB
testcase_41 AC 74 ms
76,532 KB
testcase_42 AC 75 ms
76,856 KB
testcase_43 AC 66 ms
71,396 KB
testcase_44 AC 67 ms
71,260 KB
testcase_45 AC 68 ms
71,376 KB
testcase_46 AC 67 ms
71,260 KB
testcase_47 AC 67 ms
71,260 KB
testcase_48 AC 68 ms
71,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
A = list(map(int, input().split()))
C = [0]*(n+1)
for i in range(1, n+1):
    C[i] = C[i-1]^A[i-1]
S = set()
for c in C:
    if c^k in S:
        print('Yes')
        exit()
    S.add(c)
print('No')
0