結果
| 問題 | No.1456 Range Xor |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-11 18:34:29 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 322 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 29,884 KB |
| 最終ジャッジ日時 | 2026-04-12 09:23:19 |
| 合計ジャッジ時間 | 8,778 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 44 WA * 2 |
ソースコード
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" )