Mona and Numbers

KGHSSC High School Progra...
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 TT (1T201 \le T \le 20), the number of test cases. The next TT lines contain two integers MM and NN (20<M,N100020 < 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

Submit

Login to submit.

Statistics

16% Solution Ratio
tanmoy_03Earliest, Apr '21
Being_GoromFastest, 0.0s
Being_GoromLightest, 0 B
bokaifShortest, 100B
Toph uses cookies. By continuing you agree to our Cookie Policy.