fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t;
  6. cin >> t;
  7. while(t--)
  8. {
  9. int a,b,c;
  10. cin >> a >> b >> c;
  11. if(a+b==c)
  12. {
  13. cout << "YES" << endl;
  14. }
  15. else if(b+c==a)
  16. {
  17. cout << "YES" << endl;
  18. }
  19. else if(c+a==b)
  20. {
  21. cout << "YES" << endl;
  22. }
  23. else
  24. {
  25. cout << "NO" << endl;
  26. }
  27. }
  28. return 0;
  29. }
Success #stdin #stdout 0.01s 5288KB
stdin
4
10 20 30
23 51 17
44 21 23
30 30 30

stdout
YES
NO
YES
NO