Find the number of ordered positive pairs (B,C) such that the equation x2−2Bx+C=0 has integral roots and C lies between L and R both inclusive.
Input format
Output format
For each test case, print a single integer denoting the number of ordered positive pairs possible. The output for each test case must be printed in a separate line.
Constraints
1≤T≤10
1≤L,R≤1012
The valid pairs corresponding to the first test case is: (1, 1), (2, 3), (2, 4), (3, 5).
The valid pairs corresponding to the second test case is: (2, 3), (2, 4), (3, 5), (4, 7), (3, 8), (3, 9), (5, 9).