結果
| 問題 | 
                            No.1456 Range Xor
                             | 
                    
| コンテスト | |
| ユーザー | 
                             titia
                         | 
                    
| 提出日時 | 2021-03-31 21:31:39 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 251 bytes | 
| コンパイル時間 | 238 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 26,204 KB | 
| 最終ジャッジ日時 | 2024-12-15 15:31:21 | 
| 合計ジャッジ時間 | 4,553 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 44 WA * 2 | 
ソースコード
import sys
input = sys.stdin.readline
N,K=map(int,input().split())
A=list(map(int,input().split()))
X=[0]
for a in A:
    X.append(X[-1]^a)
Y=set(X[1:])
for y in Y:
    k=K^y
    if k in Y:
        print("Yes")
        break
else:
    print("No")
            
            
            
        
            
titia