Help me in solving LOCKDRAW problem

My issue

My code

# cook your dish here

Problem Link: LOCKDRAW Problem - CodeChef

t = int(input())
for i in range(t):
    a,b,c = map(int,input().split())
    x = max(a,b,c)
    y = a+b+c
    y = y-x
    if x==y:
        print("YES")
    else:
        print("NO")

Explanation