Help me in solving EQLZING problem

My issue

how to solve

My code

import random
t=int(input())
for i in range(t):
    a,b=map(int,input().split())
    d=random.randint(a,b)
    c=d+a
    C=b-d
    if c==C:
     print("yes")
    else:
        print("no")

Problem Link: Equalizing Numbers Practice Coding Problem - CodeChef

@sanjay_pokee
the logic is , if the absolute difference between a and b is even the the answer would be yes or else the answer would be no.