Problem B. Operation
时间限制 4000 ms
内存限制 256 MB
There is an integer sequence $a$ of length $n$ and there are two kinds of operations:
0 l r: select some numbers from $a_l...a_r$ so that their xor sum is maximum, and print the maximum value.
1 x: append $x$ to the end of the sequence and let $n=n+1$.
输入数据
输出数据
For each type 0 operation, please output the maximum xor sum in a single line.
样例输入
复制
1
3 3
0 1 2
0 1 1
1 3
0 3 4
样例输出
$ Mathjax font initiator $