#P11620. [Ynoi Easy Round 2025] TEST_34
[Ynoi Easy Round 2025] TEST_34
Problem Description
You are given an integer sequence of length : , , , . You need to support the following two operations. Each operation can be represented by four integers :
When , it means to xor every number in the interval with .
When , query the maximum xor value between and the xor of any chosen numbers (including choosing numbers) within the interval .
Input Format
The first line contains two positive integers . The second line contains integers representing the sequence. Then there are lines, each containing four integers , describing an operation.
Output Format
For each operation with , output one line with one integer representing the answer.
4 5
1 14 51 4
2 1 3 0
1 2 3 3
2 1 4 10
1 1 4 514
2 3 4 2
61
63
560
Hint
Idea: nzhtl1477, Solution: nzhtl1477, Code: nzhtl1477, Data: nzhtl1477.
For of the testdata, , and the values are in .
Translated by ChatGPT 5