Please Explain question . I’m having doubts with the Type 1 inputs . Please Provide some examples for better understanding.
Doubt in Explanation of Question
@Pramod123 you have made an array with the help of type 0 queries.
For type 1 queries, you will be given a range, L and R, and a number X.
In the array, in the range L, R, you have to find a number Y, to maximise the value of X^Y
for eg in the sample input, at the time of query 1, the array is
{3,5,10,6}
now, L= 1, R= 4, X = 6
3^6 = 5
5^6 = 3
10^6 = 12
6^6 = 0
As you can see here, the maximum value for X^Y when X= 6, is given by Y =10, so print 10 as the answer.
Please mark the doubt as resolved if the explanation is clear.