結果

問題 No.1456 Range Xor
ユーザー あかりき
提出日時 2021-04-13 17:17:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 82,332 KB
実行使用メモリ 103,424 KB
最終ジャッジ日時 2024-06-29 22:19:29
合計ジャッジ時間 4,217 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 46
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a=list(map(int,input().split()))

A=[0]
for i in range(n):
  A.append(A[-1]^a[i])

A2=set()
for i in range(len(A)):
  if A[i]^k in A2:
    print('Yes')
    exit()
  A2.add(A[i])
print('No')
0