結果

問題 No.1456 Range Xor
ユーザー kikagekikage
提出日時 2021-08-11 18:36:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 463 ms
コンパイル使用メモリ 11,764 KB
実行使用メモリ 25,336 KB
最終ジャッジ日時 2023-10-25 10:00:27
合計ジャッジ時間 6,046 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,104 KB
testcase_01 AC 27 ms
10,104 KB
testcase_02 AC 27 ms
10,104 KB
testcase_03 AC 109 ms
25,336 KB
testcase_04 AC 125 ms
25,336 KB
testcase_05 AC 117 ms
25,336 KB
testcase_06 AC 117 ms
25,336 KB
testcase_07 AC 118 ms
25,336 KB
testcase_08 AC 120 ms
25,336 KB
testcase_09 AC 117 ms
25,336 KB
testcase_10 AC 115 ms
25,336 KB
testcase_11 AC 40 ms
12,956 KB
testcase_12 AC 34 ms
11,612 KB
testcase_13 AC 53 ms
16,828 KB
testcase_14 AC 54 ms
16,752 KB
testcase_15 AC 96 ms
24,032 KB
testcase_16 AC 90 ms
19,416 KB
testcase_17 AC 62 ms
17,144 KB
testcase_18 AC 50 ms
16,720 KB
testcase_19 AC 74 ms
18,384 KB
testcase_20 AC 87 ms
19,184 KB
testcase_21 AC 75 ms
18,380 KB
testcase_22 AC 80 ms
18,548 KB
testcase_23 AC 56 ms
16,744 KB
testcase_24 AC 39 ms
12,400 KB
testcase_25 AC 55 ms
16,232 KB
testcase_26 AC 69 ms
17,684 KB
testcase_27 AC 84 ms
18,660 KB
testcase_28 AC 49 ms
15,592 KB
testcase_29 AC 111 ms
24,368 KB
testcase_30 AC 117 ms
25,024 KB
testcase_31 AC 49 ms
15,560 KB
testcase_32 AC 43 ms
13,224 KB
testcase_33 AC 62 ms
17,008 KB
testcase_34 AC 113 ms
24,852 KB
testcase_35 AC 71 ms
18,284 KB
testcase_36 AC 118 ms
25,112 KB
testcase_37 AC 107 ms
24,188 KB
testcase_38 AC 40 ms
12,504 KB
testcase_39 AC 88 ms
19,036 KB
testcase_40 AC 86 ms
18,720 KB
testcase_41 AC 30 ms
10,416 KB
testcase_42 AC 37 ms
11,840 KB
testcase_43 AC 29 ms
10,104 KB
testcase_44 AC 28 ms
10,104 KB
testcase_45 AC 29 ms
10,104 KB
testcase_46 AC 30 ms
10,104 KB
testcase_47 AC 29 ms
10,104 KB
testcase_48 AC 29 ms
10,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

flag=False
N,K=map(int,input().split())
A=list(map(int,input().split()))
B=[0]
for i in range(N):
    B.append(B[i]^A[i])
B_xor_K=set(B[1:])
for x in B:
    if x^K in B_xor_K:flag=True

print("Yes" if flag else "No" )
0