Help me in solving SUM IT

My issue

IS CODE PASSES ALL TEST CASES

My code

for _ in range(size):
              a,b,c=map(int,input().split())
              sum=a+b
              if sum==c:
                     print('YES')
              else:
                  print('NO')
# cook your dish here
ans=0
size=int(input())
for _ in range(size):
            x,y,z=map(int,input().split())
            ans+=x*y
            

Problem Link: SLOWSOLN Problem - CodeChef