結果

問題 No.1456 Range Xor
ユーザー kikagekikage
提出日時 2021-08-11 18:34:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 11,684 KB
実行使用メモリ 25,300 KB
最終ジャッジ日時 2023-10-25 09:58:42
合計ジャッジ時間 5,630 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,064 KB
testcase_01 AC 30 ms
10,064 KB
testcase_02 AC 30 ms
10,064 KB
testcase_03 AC 125 ms
25,300 KB
testcase_04 AC 123 ms
25,300 KB
testcase_05 AC 125 ms
25,300 KB
testcase_06 AC 125 ms
25,300 KB
testcase_07 AC 123 ms
25,300 KB
testcase_08 AC 123 ms
25,300 KB
testcase_09 AC 124 ms
25,300 KB
testcase_10 AC 124 ms
25,300 KB
testcase_11 AC 45 ms
12,920 KB
testcase_12 AC 37 ms
11,572 KB
testcase_13 AC 59 ms
16,788 KB
testcase_14 AC 60 ms
16,716 KB
testcase_15 AC 110 ms
23,992 KB
testcase_16 AC 94 ms
19,376 KB
testcase_17 AC 68 ms
17,108 KB
testcase_18 AC 58 ms
16,684 KB
testcase_19 AC 83 ms
18,348 KB
testcase_20 AC 95 ms
19,144 KB
testcase_21 AC 81 ms
18,340 KB
testcase_22 AC 82 ms
18,512 KB
testcase_23 AC 61 ms
16,708 KB
testcase_24 AC 41 ms
12,364 KB
testcase_25 AC 54 ms
16,192 KB
testcase_26 AC 71 ms
17,648 KB
testcase_27 AC 90 ms
18,620 KB
testcase_28 AC 53 ms
15,552 KB
testcase_29 AC 118 ms
24,332 KB
testcase_30 AC 122 ms
24,984 KB
testcase_31 AC 51 ms
15,524 KB
testcase_32 AC 46 ms
13,184 KB
testcase_33 AC 65 ms
16,972 KB
testcase_34 AC 119 ms
24,816 KB
testcase_35 AC 74 ms
18,244 KB
testcase_36 AC 125 ms
25,080 KB
testcase_37 AC 111 ms
24,152 KB
testcase_38 AC 43 ms
12,468 KB
testcase_39 AC 93 ms
18,996 KB
testcase_40 AC 93 ms
18,688 KB
testcase_41 AC 32 ms
10,380 KB
testcase_42 AC 39 ms
11,804 KB
testcase_43 WA -
testcase_44 AC 30 ms
10,064 KB
testcase_45 AC 30 ms
10,064 KB
testcase_46 AC 30 ms
10,064 KB
testcase_47 WA -
testcase_48 AC 30 ms
10,064 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[1:]:
    if x^K in B_xor_K:flag=True

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