結果

問題 No.1456 Range Xor
ユーザー 👑 KazunKazun
提出日時 2021-07-01 02:01:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 672 ms
コンパイル使用メモリ 86,796 KB
実行使用メモリ 102,716 KB
最終ジャッジ日時 2023-09-09 19:09:12
合計ジャッジ時間 8,755 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,192 KB
testcase_01 AC 67 ms
71,168 KB
testcase_02 AC 67 ms
71,000 KB
testcase_03 AC 97 ms
92,016 KB
testcase_04 AC 93 ms
93,428 KB
testcase_05 AC 100 ms
100,260 KB
testcase_06 AC 91 ms
92,360 KB
testcase_07 AC 103 ms
102,716 KB
testcase_08 AC 98 ms
98,328 KB
testcase_09 AC 93 ms
92,688 KB
testcase_10 AC 92 ms
94,784 KB
testcase_11 AC 77 ms
78,800 KB
testcase_12 AC 72 ms
76,440 KB
testcase_13 AC 80 ms
82,452 KB
testcase_14 AC 78 ms
80,304 KB
testcase_15 AC 88 ms
89,348 KB
testcase_16 AC 89 ms
91,376 KB
testcase_17 AC 86 ms
86,648 KB
testcase_18 AC 76 ms
79,316 KB
testcase_19 AC 88 ms
89,656 KB
testcase_20 AC 90 ms
92,112 KB
testcase_21 AC 85 ms
87,052 KB
testcase_22 AC 83 ms
85,128 KB
testcase_23 AC 80 ms
82,992 KB
testcase_24 AC 75 ms
77,804 KB
testcase_25 AC 79 ms
81,264 KB
testcase_26 AC 88 ms
89,392 KB
testcase_27 AC 89 ms
89,908 KB
testcase_28 AC 79 ms
80,604 KB
testcase_29 AC 102 ms
102,084 KB
testcase_30 AC 94 ms
95,484 KB
testcase_31 AC 79 ms
79,800 KB
testcase_32 AC 76 ms
79,136 KB
testcase_33 AC 80 ms
83,520 KB
testcase_34 AC 98 ms
97,872 KB
testcase_35 AC 86 ms
86,556 KB
testcase_36 AC 95 ms
95,868 KB
testcase_37 AC 102 ms
102,040 KB
testcase_38 AC 76 ms
77,840 KB
testcase_39 AC 86 ms
87,960 KB
testcase_40 AC 94 ms
94,980 KB
testcase_41 AC 73 ms
76,528 KB
testcase_42 AC 74 ms
76,884 KB
testcase_43 AC 68 ms
71,180 KB
testcase_44 AC 70 ms
71,136 KB
testcase_45 AC 70 ms
71,136 KB
testcase_46 AC 68 ms
71,328 KB
testcase_47 AC 69 ms
71,220 KB
testcase_48 AC 69 ms
71,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K=map(int,input().split())
A=list(map(int,input().split()))

S={0}
X=0
for a in A:
    X^=a
    if X^K in S:
        exit(print("Yes"))
    else:
        S.add(X)

print("No")
0