cook your dish here
for _ in range(int(input())):
W,X,Y,Z=map(int,input().split())
if W in (X,Y,Y,X+Y,X+Z,Y+Z,X+Y+Z):
print(“YES”)
else:
print(“NO”)
It is showing WA for test cases on submitting but i think the code is correct
for _ in range(int(input())):
W,X,Y,Z=map(int,input().split())
if W in (X,Y,Y,X+Y,X+Z,Y+Z,X+Y+Z):
print(“YES”)
else:
print(“NO”)
It is showing WA for test cases on submitting but i think the code is correct
You missed ‘Z’ in the list/tuple, it should be (X,Y,Z,X+Y,X+Z,Y+Z,X+Y+Z)