Ankit_132

A

Jul 21st, 2023
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1.  
  2. #include <bits/stdc++.h>
  3.  
  4. using namespace std;
  5.  
  6. #define ll     long long
  7. #define _test   int _TEST; cin>>_TEST; while(_TEST--)
  8.  
  9. int main()
  10. {
  11.     _test
  12.     {
  13.         vector<int> a(3);
  14.         for(auto &e: a)     cin>>e;
  15.  
  16.         sort(a.begin(), a.end());
  17.  
  18.         if(a[2] + a[1] >= 10)       cout<<"YES\n";
  19.         else                        cout<<"NO\n";
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment