补题地址:https://nanti.jisuanke.com/t/A1607
题目:
Consider an array A with n elements . Each of its element is A[i](1≤i≤n). Then gives two integers Q, K, and Q queries follow . Each query , give you L, R, you can get Z by the following rules.
To get Z , at first you need to choose some elements from A[L] to A[R] ,we call them A[i1],A[i2]…A[it] , Then you can get number Z=K or (A[i1] xor A[i2] … xor A[it]) .
Please calculate the maximum ZZ for each query .
Input
Several test cases .
First line an integer T (1≤T≤10) . Indicates the number of test cases.Then T test cases follows . Each test c