#P17209. 「DLESS-6」XOR and Your Problem
「DLESS-6」XOR and Your Problem
Background
You created this problem.
Problem Description
You are given a sequence of non-negative integers and queries. For each query, given , find:
Here, denotes the bitwise XOR operation.
Input Format
The first line contains two positive integers .
The second line contains non-negative integers, representing the sequence .
The next lines each contain two integers , representing one query.
Output Format
For each query, output one number per line, representing the answer.
5 5
3 4 6 7 1
3 4
1 2
3 5
4 5
4 4
1
7
7
6
0
8 10
11 14 10 12 3 6 15 11
2 3
3 4
2 7
2 4
3 8
5 6
2 5
8 8
5 8
1 4
4
6
15
6
15
5
15
0
13
7
Hint
For all testdata, it is guaranteed that:
- .
- .
- .
This problem uses bundled tests, and the special properties of each subtask are as follows:
| Subtask ID | Score | ||
|---|---|---|---|
Translated by ChatGPT 5