My issue
t=int(input())
for i in range(t):
a,b,x=map(int,input().split())
if a==b:
print(“yes”)
else:
if (a+x)==(b-x) or (a-x)==(b+x):
print(“yes”)
else:
print(“no”)
My code
# cook your dish here
t=int(input())
for i in range(t):
a,b,x=map(int,input().split())
if a==b:
print("yes")
else:
if (a+x)==(b-x) or (a-x)==(b+x):
print("yes")
else:
print("no")
Problem Link: Equalize AB Practice Coding Problem