Created
October 13, 2022 16:59
-
-
Save qjatn0120/b403297e01e59474fd495aa1874f3d22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
int main(){ | |
cin.tie(nullptr), ios::sync_with_stdio(false); | |
int t, a, b, c; | |
cin >> t; | |
while(t--){ | |
cin >> a >> b >> c; | |
bool ans = false; | |
if(a == b + c) ans = true; | |
if(b == a + c) ans = true; | |
if(c == a + b) ans = true; | |
cout << (ans ? "YES\n" : "NO\n"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment