結果

問題 No.1456 Range Xor
ユーザー kikage
提出日時 2021-08-11 18:34:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 26,220 KB
最終ジャッジ日時 2024-09-25 05:01:35
合計ジャッジ時間 5,244 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 44 WA * 2
権限があれば一括ダウンロードができます

ソースコード

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