結果

問題 No.1456 Range Xor
ユーザー googol_S0googol_S0
提出日時 2021-03-31 21:00:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 951 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 95,360 KB
最終ジャッジ日時 2024-12-15 08:23:07
合計ジャッジ時間 4,501 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 46
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K=map(int,input().split())
S=set([0])
A=list(map(int,input().split()))
C=0
for i in range(N):
  C^=A[i]
  if C^K in S:
    print('Yes')
    exit()
  S.add(C)
print('No')
0