# Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

# Mona and Numbers

Limits 1s, 512 MB

Mona has started going to school. Her mathematics teacher was teaching her how to count.

Mona now wants to write a program that she can use to find the total number of odd numbers between M and N.

## Input

The first line of input consists of an integer $T$ ($1 \le T \le 20$), the number of test cases. The next $T$ lines contain two integers $M$ and $N$ ($20 < M, N \le 1000$).

## Output

Print the total number of odd numbers between given range (including M and N).

## Sample

InputOutput
3
21 25
100 104
1000 1002

3
2
1


### Statistics

6% Solution Ratio

tanmoy_03Earliest, 1w ago

Being_GoromFastest, 0.0s

Being_GoromLightest, 0 B

bokaifShortest, 100B