题目链接:戳我
Description
Given a range [a, b], you are to find the summation of all the odd integers in this range.
给定范围[a,b],你要找到这个范围内所有奇数的总和。
For example,the summation of all the odd integers in the range [3, 9] is 3 + 5 + 7 + 9 = 24.
例如,在范围[3,9]中,奇数和为:3 + 5 + 7 + 9 = 24.
Input
There can be at multiple test cases.
可以有多个测试用例
The first line of input gives you the number of test cases, T(1 ≤ T ≤ 100).
输入的第一行给出了测试用例的数量,T(1 ≤ T ≤ 100).
Then T test cases follow. Each test case consists of 2 integers a and b (0 ≤ a ≤ b ≤ 100)
in two separate lines.
然后后面跟着T个测试用例。每个测试用例占两行,包含两个整数a和b(0 ≤ a ≤ b ≤ 100)。