結果

問題 No.1456 Range Xor
ユーザー dachengzdachengz
提出日時 2023-01-26 10:46:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 1,038 ms
コンパイル使用メモリ 86,900 KB
実行使用メモリ 96,712 KB
最終ジャッジ日時 2023-09-09 13:59:34
合計ジャッジ時間 7,085 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,272 KB
testcase_01 AC 69 ms
71,424 KB
testcase_02 AC 70 ms
71,336 KB
testcase_03 AC 87 ms
85,884 KB
testcase_04 AC 90 ms
87,548 KB
testcase_05 AC 97 ms
93,944 KB
testcase_06 AC 88 ms
86,084 KB
testcase_07 AC 100 ms
96,388 KB
testcase_08 AC 94 ms
92,128 KB
testcase_09 AC 86 ms
86,456 KB
testcase_10 AC 88 ms
88,312 KB
testcase_11 AC 77 ms
78,704 KB
testcase_12 AC 74 ms
76,168 KB
testcase_13 AC 81 ms
81,432 KB
testcase_14 AC 77 ms
79,020 KB
testcase_15 AC 89 ms
83,576 KB
testcase_16 AC 89 ms
86,768 KB
testcase_17 AC 85 ms
84,640 KB
testcase_18 AC 75 ms
78,136 KB
testcase_19 AC 86 ms
86,488 KB
testcase_20 AC 88 ms
87,384 KB
testcase_21 AC 84 ms
83,596 KB
testcase_22 AC 81 ms
81,848 KB
testcase_23 AC 79 ms
81,332 KB
testcase_24 AC 76 ms
77,652 KB
testcase_25 AC 80 ms
80,392 KB
testcase_26 AC 87 ms
86,924 KB
testcase_27 AC 86 ms
85,760 KB
testcase_28 AC 79 ms
79,972 KB
testcase_29 AC 101 ms
96,712 KB
testcase_30 AC 89 ms
89,496 KB
testcase_31 AC 78 ms
79,312 KB
testcase_32 AC 77 ms
78,420 KB
testcase_33 AC 81 ms
81,392 KB
testcase_34 AC 92 ms
91,824 KB
testcase_35 AC 86 ms
83,668 KB
testcase_36 AC 91 ms
89,584 KB
testcase_37 AC 98 ms
96,296 KB
testcase_38 AC 76 ms
77,800 KB
testcase_39 AC 85 ms
83,680 KB
testcase_40 AC 92 ms
91,052 KB
testcase_41 AC 74 ms
76,372 KB
testcase_42 AC 74 ms
76,752 KB
testcase_43 AC 68 ms
71,396 KB
testcase_44 AC 67 ms
71,416 KB
testcase_45 AC 68 ms
71,380 KB
testcase_46 AC 68 ms
71,336 KB
testcase_47 AC 70 ms
71,224 KB
testcase_48 AC 70 ms
71,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
A = map(int, input().split())
seen = {0}
b = 0
for a in A:
    b ^= a
    if b ^ K in seen:
        print("Yes")
        exit()
    seen.add(b)
print("No")
0