The first line contains on integer(
), means the number of test cases.
For the nextlines, each line contains three integers
(
).
For each question, output a single integer representing the number of pairssatisfying all restrictions.
In the first question, there're two legal pairsand
. Notice that
is illegal because
.
is also illegal because
isn't a positive integer.