結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,060 KB
testcase_01 AC 29 ms
10,060 KB
testcase_02 AC 28 ms
10,060 KB
testcase_03 AC 93 ms
24,228 KB
testcase_04 AC 93 ms
24,228 KB
testcase_05 AC 95 ms
24,228 KB
testcase_06 AC 94 ms
24,228 KB
testcase_07 AC 90 ms
24,228 KB
testcase_08 AC 90 ms
24,228 KB
testcase_09 AC 93 ms
24,228 KB
testcase_10 AC 94 ms
24,228 KB
testcase_11 AC 40 ms
12,860 KB
testcase_12 AC 32 ms
11,496 KB
testcase_13 AC 52 ms
16,252 KB
testcase_14 AC 49 ms
16,180 KB
testcase_15 AC 80 ms
22,664 KB
testcase_16 AC 72 ms
18,420 KB
testcase_17 AC 62 ms
16,320 KB
testcase_18 AC 47 ms
16,144 KB
testcase_19 AC 70 ms
17,580 KB
testcase_20 AC 75 ms
18,392 KB
testcase_21 AC 63 ms
17,540 KB
testcase_22 AC 66 ms
17,740 KB
testcase_23 AC 48 ms
16,432 KB
testcase_24 AC 38 ms
12,132 KB
testcase_25 AC 49 ms
15,392 KB
testcase_26 AC 65 ms
16,812 KB
testcase_27 AC 70 ms
17,948 KB
testcase_28 AC 47 ms
15,280 KB
testcase_29 AC 102 ms
22,800 KB
testcase_30 AC 92 ms
22,928 KB
testcase_31 AC 46 ms
14,984 KB
testcase_32 AC 41 ms
12,912 KB
testcase_33 AC 52 ms
15,904 KB
testcase_34 AC 91 ms
23,220 KB
testcase_35 AC 59 ms
17,444 KB
testcase_36 AC 91 ms
23,016 KB
testcase_37 AC 96 ms
22,816 KB
testcase_38 AC 38 ms
12,160 KB
testcase_39 AC 70 ms
17,936 KB
testcase_40 AC 76 ms
17,928 KB
testcase_41 AC 28 ms
10,292 KB
testcase_42 AC 36 ms
11,712 KB
testcase_43 WA -
testcase_44 AC 26 ms
10,060 KB
testcase_45 AC 26 ms
10,060 KB
testcase_46 AC 27 ms
10,060 KB
testcase_47 WA -
testcase_48 AC 26 ms
10,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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