#P1864A. Increasing and Decreasing
Increasing and Decreasing
No submission language available for this problem.
Description
You are given three integers , , and .
Your task is to construct an array consisting of integers which satisfies the following conditions:
- , ;
- is strictly increasing (i.e. );
- if we denote for , then is strictly decreasing (i.e. ).
If there is no such array , print a single integer .
Each test contains multiple test cases. The first line contains the number of test cases (). The description of the test cases follows.
The only line of each test case contains three integers , , ().
For each test case, output integers . If there are multiple solutions, print any of them.
If there is no solution, print a single integer .
Input
Each test contains multiple test cases. The first line contains the number of test cases (). The description of the test cases follows.
The only line of each test case contains three integers , , ().
Output
For each test case, output integers . If there are multiple solutions, print any of them.
If there is no solution, print a single integer .
Note
In the first test case, , which is strictly increasing. Next, , , thus , which is strictly decreasing.
In the second test case, there is no array that satisfies all the conditions above.