SUMM - Editorial

PROBLEM LINK:

Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4

Author: still_me
Testers: the_hyp0cr1t3, rivalq
Editorialist: iceknight1093

DIFFICULTY:

TBD

PREREQUISITES:

None

PROBLEM:

Given A, B, C check if A+B = C.

EXPLANATION:

This is a direct application of if statements: print YES if A+B == C and NO otherwise.

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Code (Python)
for _ in range(int(input())):
    a, b, c = map(int, input().split())
    print('Yes' if a+b == c else 'No')