casos = int(input())
for x in range (0, casos):
    a, b = input().split(" ")
    a = int(a)
    b = int(b)
    soma = int(0)
    if (a > b):
        z = int(b)
        b = a
        a = z
    a = a + 1
    while a < b:
        if (a%2 == 1):
            soma = soma + a
        a = a + 1
    print(soma)
0b431a338f3961f1965ffea707cef3ba551b2459
<mask token>

<mask token>
for x in range(0, casos):
    a, b = input().split(' ')
    a = int(a)
    b = int(b)
    soma = int(0)
    if a > b:
        z = int(b)
        b = a
        a = z
    a = a + 1
    while a < b:
        if a % 2 == 1:
            soma = soma + a
        a = a + 1
    print(soma)

casos = int(input())
for x in range(0, casos):
    a, b = input().split(' ')
    a = int(a)
    b = int(b)
    soma = int(0)
    if a > b:
        z = int(b)
        b = a
        a = z
    a = a + 1
    while a < b:
        if a % 2 == 1:
            soma = soma + a
        a = a + 1
    print(soma)

casos = int(input())
for x in range (0, casos):
    a, b = input().split(" ")
    a = int(a)
    b = int(b)
    soma = int(0)
    if (a > b):
        z = int(b)
        b = a
        a = z
    a = a + 1
    while a < b:
        if (a%2 == 1):
            soma = soma + a
        a = a + 1
    print(soma)