[Solution] Sum Codeforces Solution | Solution Codeforces
A. Sum
time limit per test
1 secondmemory limit per test
256 megabytesinput
standard inputoutput
standard outputYou are given three integers , , and . Determine if one of them is the sum of the other two.
Input
The first line contains a single integer () — the number of test cases.
The description of each test case consists of three integers , , ().
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, .
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