Obtain the Sum solution codechef
Chef is given two integers.
Consider an arrayof size such that for every .
You are required to find any positionsuch that :
If there are multiple such positions, print any such position. If there is no such position, print .
- First line will contain , number of testcases. Then the testcases follow.
- Each testcase contains of a single line of input, two integers .
For each testcase, output the required position orin case there is no such position.
Sample Input 1
3 4 8 5 10 2 3
Sample Output 1
2 5 -1
Test Case: , so is a suitable position.
Test Case: There is no suitable position.