結果

問題 No.1456 Range Xor
ユーザー DrDrpilotDrDrpilot
提出日時 2022-03-16 15:56:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 11,752 KB
実行使用メモリ 22,840 KB
最終ジャッジ日時 2023-10-24 20:56:38
合計ジャッジ時間 4,230 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,080 KB
testcase_01 AC 29 ms
10,080 KB
testcase_02 AC 27 ms
10,080 KB
testcase_03 AC 61 ms
21,060 KB
testcase_04 AC 66 ms
21,060 KB
testcase_05 AC 82 ms
21,060 KB
testcase_06 AC 60 ms
21,060 KB
testcase_07 AC 87 ms
21,060 KB
testcase_08 AC 78 ms
21,060 KB
testcase_09 AC 66 ms
21,060 KB
testcase_10 AC 68 ms
21,060 KB
testcase_11 AC 40 ms
12,880 KB
testcase_12 AC 32 ms
11,516 KB
testcase_13 AC 52 ms
16,272 KB
testcase_14 AC 41 ms
14,088 KB
testcase_15 AC 53 ms
19,032 KB
testcase_16 AC 63 ms
18,440 KB
testcase_17 AC 59 ms
16,344 KB
testcase_18 AC 39 ms
13,792 KB
testcase_19 AC 65 ms
17,604 KB
testcase_20 AC 67 ms
18,240 KB
testcase_21 AC 55 ms
16,768 KB
testcase_22 AC 48 ms
16,816 KB
testcase_23 AC 50 ms
16,456 KB
testcase_24 AC 36 ms
12,152 KB
testcase_25 AC 48 ms
15,412 KB
testcase_26 AC 62 ms
16,836 KB
testcase_27 AC 62 ms
17,584 KB
testcase_28 AC 45 ms
15,300 KB
testcase_29 AC 98 ms
22,824 KB
testcase_30 AC 72 ms
20,428 KB
testcase_31 AC 44 ms
15,008 KB
testcase_32 AC 40 ms
12,932 KB
testcase_33 AC 51 ms
15,928 KB
testcase_34 AC 77 ms
20,468 KB
testcase_35 AC 58 ms
17,464 KB
testcase_36 AC 73 ms
20,656 KB
testcase_37 AC 94 ms
22,840 KB
testcase_38 AC 38 ms
12,180 KB
testcase_39 AC 55 ms
17,880 KB
testcase_40 AC 74 ms
17,956 KB
testcase_41 AC 28 ms
10,312 KB
testcase_42 AC 34 ms
11,732 KB
testcase_43 AC 26 ms
10,080 KB
testcase_44 AC 27 ms
10,080 KB
testcase_45 AC 27 ms
10,080 KB
testcase_46 AC 26 ms
10,080 KB
testcase_47 AC 27 ms
10,080 KB
testcase_48 AC 26 ms
10,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a=list(map(int,input().split()))
s=set()
now=0
s.add(now)
for i in a:
    now=now^i
    tmp=now^k
    if tmp in s:
        print('Yes')
        exit()
    s.add(now)
print('No')
0