#413. Xor sum
Xor sum
Description
Given a sequence of integers of length n, find the shortest consecutive subsequence witch XOR sum not less than k.
If there are multiple consecutive subsequences of the same length, print the consecutive subsequence with the smallest left end point.
If there are no consecutive subsequence witch XOR sum not less than k, just print "-1".
Format
Input
The first line contains a single integer representing the number of test cases in the input. Then test cases follow.
The first line of each test case contains two integers and , representing the length of sequence.
The second line of each test contains n integers , representing the integers in sequence.
The number of test witch does not exceed 5.
Output
For each test case, print two integers in one line, representing the left end point and right end point of the consecutive subsequence.
If there are no consecutive subsequence witch XOR sum not less than k, print "-1" in one line.
Samples
2
3 2
1 2 2
9 7
3 1 3 2 4 0 3 5 1
2 2
5 7