GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Thursday, 13 October 2022

[Solution] Sum Codeforces Solution | Solution Codeforces



A. Sum
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

You are given three integers ab, and c. Determine if one of them is the sum of the other two.

Input

The first line contains a single integer t (1t9261) — the number of test cases.

The description of each test case consists of three integers abc (0a,b,c20).

Output

For each test case, output "YES" if one of the numbers is the sum of the other two, and "NO" otherwise.

You can output the answer in any case (for example, the strings "yEs", "yes", "Yes" and "YES" will be recognized as a positive answer).


Note

In the first test case, 1+3=4.

In the second test case, none of the numbers is the sum of the other two.

In the third test case, 

No comments:

Post a Comment