結果

問題 No.1456 Range Xor
ユーザー NaHCO314NaHCO314
提出日時 2021-03-12 12:34:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 253 bytes
コンパイル時間 1,476 ms
コンパイル使用メモリ 86,620 KB
実行使用メモリ 106,536 KB
最終ジャッジ日時 2023-08-20 20:17:32
合計ジャッジ時間 7,927 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
70,828 KB
testcase_01 AC 83 ms
70,968 KB
testcase_02 AC 83 ms
71,048 KB
testcase_03 AC 126 ms
106,100 KB
testcase_04 AC 122 ms
106,400 KB
testcase_05 AC 125 ms
106,236 KB
testcase_06 AC 125 ms
106,536 KB
testcase_07 AC 125 ms
106,436 KB
testcase_08 AC 123 ms
106,196 KB
testcase_09 AC 122 ms
106,536 KB
testcase_10 AC 121 ms
106,196 KB
testcase_11 AC 91 ms
79,080 KB
testcase_12 AC 90 ms
76,144 KB
testcase_13 AC 99 ms
82,852 KB
testcase_14 AC 98 ms
82,916 KB
testcase_15 AC 120 ms
102,192 KB
testcase_16 AC 112 ms
99,144 KB
testcase_17 AC 114 ms
86,784 KB
testcase_18 AC 97 ms
82,644 KB
testcase_19 AC 111 ms
94,032 KB
testcase_20 AC 111 ms
99,172 KB
testcase_21 AC 106 ms
93,780 KB
testcase_22 AC 114 ms
93,956 KB
testcase_23 AC 98 ms
84,232 KB
testcase_24 AC 92 ms
77,728 KB
testcase_25 AC 98 ms
81,576 KB
testcase_26 AC 106 ms
89,772 KB
testcase_27 AC 107 ms
96,340 KB
testcase_28 AC 97 ms
80,516 KB
testcase_29 AC 125 ms
102,740 KB
testcase_30 AC 122 ms
106,156 KB
testcase_31 AC 92 ms
79,612 KB
testcase_32 AC 93 ms
79,228 KB
testcase_33 AC 101 ms
85,340 KB
testcase_34 AC 125 ms
105,904 KB
testcase_35 AC 101 ms
89,904 KB
testcase_36 AC 126 ms
106,112 KB
testcase_37 AC 126 ms
102,376 KB
testcase_38 AC 92 ms
77,568 KB
testcase_39 AC 116 ms
96,816 KB
testcase_40 AC 112 ms
96,488 KB
testcase_41 AC 91 ms
76,148 KB
testcase_42 AC 92 ms
76,864 KB
testcase_43 AC 84 ms
70,836 KB
testcase_44 AC 85 ms
71,232 KB
testcase_45 AC 84 ms
71,200 KB
testcase_46 AC 86 ms
71,148 KB
testcase_47 AC 84 ms
70,960 KB
testcase_48 AC 85 ms
70,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
a = [0] + list(map(int, input().split()))
b = set()
b.add(a[1] ^ k)

for i in range(1, n+1):
    a[i] ^= a[i-1]
    b.add(a[i] ^ k)
for i in a:
    if i in b:
        print("Yes")
        break
else:
    print("No")
    
0