
Input: 'A' = 5, 'B' = 3, 'C' = 4
Output: 3
Here only three possible combinations are:
(7, 5) Transfer 2 apples to the first basket and 2 apples to the second basket.
(9, 3) Transfer 4 apples to the first basket and 0 apples to the second basket.
(8, 4) Transfer 3 apples to the first basket and 1 apple to the second basket.
Only above combinations for (A, B) satisfies the condition that all 'C' apples are used and ('A' > 'B')
The first line will contain integer 'T' denoting the number of test cases. For each test case, there will be a single line containing three integers 'A', 'B', and 'C' only.
For each test case, print a single line containing a single integer number of possible arrangements of apples so that the resultant configuration is feasible for Ninja to do the partiality.
You don't need to print anything. It has already been taken care of. Just implement the given function.
1 <= 'T' <= 10^5
0 <= 'A', 'B', 'C'<= 10^8
Time Limit : 1 sec
Algorithm :