結果
問題 |
No.1456 Range Xor
|
ユーザー |
![]() |
提出日時 | 2021-09-08 11:19:18 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 333 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 90,880 KB |
最終ジャッジ日時 | 2024-12-25 15:06:40 |
合計ジャッジ時間 | 6,790 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 19 WA * 27 |
ソースコード
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]) A_set = set(A) for i in range(len(A)): if A[i] ^ k in A_set: print("Yes") exit() print("No")