atcoder#ARC112A. [ARC112A] B = C
[ARC112A] B = C
Score : points
Problem Statement
How many triples of integers between and (inclusive) satisfy ?
You will be given cases. Solve each of them.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Each case is in the following format:
Output
Print values; the -th of them should be the answer for .
5
2 6
0 0
1000000 1000000
12345 67890
0 1000000
6
1
0
933184801
500001500001
In the first case, we have the following six triples: