Moana's Counting
Time: 1 s
Memory: 125 MB
Memory: 125 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.
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 (1≤T≤201≤T≤20), the number of test cases. The next TT lines contain two integers MM and NN (20<M,N≤100020<M,N≤1000).
Output
Print the total number of odd numbers between given range (including M and N).
Problem Info
| Problem ID | 325 |
| Time Limit | 1000 ms |
| Memory Limit | 128000 KB |
| Moderators | Shadman_Adib09 |
Statistics
Submit
You need to Login or Registration for submit your solution