結果

問題 No.1456 Range Xor
ユーザー pluto77pluto77
提出日時 2021-06-25 15:02:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 22,732 KB
最終ジャッジ日時 2023-09-07 13:35:29
合計ジャッジ時間 7,848 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,912 KB
testcase_01 AC 16 ms
7,904 KB
testcase_02 AC 16 ms
7,856 KB
testcase_03 AC 87 ms
22,556 KB
testcase_04 AC 87 ms
22,672 KB
testcase_05 AC 86 ms
22,584 KB
testcase_06 AC 84 ms
22,724 KB
testcase_07 AC 93 ms
22,732 KB
testcase_08 AC 87 ms
22,664 KB
testcase_09 AC 87 ms
22,592 KB
testcase_10 AC 82 ms
22,548 KB
testcase_11 AC 29 ms
10,852 KB
testcase_12 AC 22 ms
9,628 KB
testcase_13 AC 42 ms
13,312 KB
testcase_14 AC 39 ms
13,256 KB
testcase_15 AC 73 ms
21,096 KB
testcase_16 AC 64 ms
17,768 KB
testcase_17 AC 49 ms
15,368 KB
testcase_18 AC 37 ms
14,176 KB
testcase_19 AC 55 ms
16,756 KB
testcase_20 AC 63 ms
17,536 KB
testcase_21 AC 54 ms
16,584 KB
testcase_22 AC 55 ms
15,716 KB
testcase_23 AC 41 ms
15,188 KB
testcase_24 AC 27 ms
10,824 KB
testcase_25 AC 39 ms
14,036 KB
testcase_26 AC 54 ms
15,444 KB
testcase_27 AC 59 ms
16,784 KB
testcase_28 AC 36 ms
13,624 KB
testcase_29 AC 94 ms
22,136 KB
testcase_30 AC 82 ms
22,344 KB
testcase_31 AC 35 ms
13,168 KB
testcase_32 AC 30 ms
10,868 KB
testcase_33 AC 45 ms
15,400 KB
testcase_34 AC 80 ms
22,084 KB
testcase_35 AC 48 ms
15,644 KB
testcase_36 AC 82 ms
22,456 KB
testcase_37 AC 89 ms
21,408 KB
testcase_38 AC 27 ms
10,880 KB
testcase_39 AC 61 ms
16,524 KB
testcase_40 AC 69 ms
16,788 KB
testcase_41 AC 17 ms
8,520 KB
testcase_42 AC 24 ms
9,776 KB
testcase_43 AC 15 ms
7,744 KB
testcase_44 AC 15 ms
7,760 KB
testcase_45 AC 16 ms
7,772 KB
testcase_46 AC 16 ms
7,804 KB
testcase_47 AC 17 ms
7,800 KB
testcase_48 AC 16 ms
7,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1456
n,k=map(int,input().split())
a=list(map(int,input().split()))
x=[0]
for i in range(n):
 x.append(x[-1]^a[i])
s=set(x)
for i in x:
 if k^i in s:
  print('Yes')
  break
else:
 print('No')
0