Limits 1s, 512 MB

This task is simple. You will be given 22 positive integers LL and RR.

Find the number of positive even integers xx such that LxRL \leq x \leq R.

Input

The first line of input contains an integer TT denoting the number of test cases.

The only line of each test case contains two integers LL and RR.

Constraints

1T1001 \le T \le 100

1LR10001 \leq L \leq R \leq 1000

Output

Output one integer, the answer to the problem.

Sample

InputOutput
1
1 2
1

Submit

Login to submit.

Statistics

92% Solution Ratio
nothing36Earliest, 9M ago
AhsanulHoqueFastest, 0.0s
flying_saucerLightest, 5.1 MB
Nusab19Shortest, 110B
Toph uses cookies. By continuing you agree to our Cookie Policy.