Advertisement
Saleh127

CF 1279A

Aug 4th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. ios_base::sync_with_stdio(0);
  6. cin.tie(0);
  7. cout.tie(0);
  8.  
  9. int t;
  10. cin>>t;
  11. while(t--)
  12. {
  13. int a[3];
  14. for(int i=0; i<3; i++)
  15. {
  16. cin>>a[i];
  17. }
  18. sort(a,a+3);
  19. if(a[2]>a[1]+a[0]+1) cout<<"NO"<<endl;
  20. else cout<<"YES"<<endl;
  21. }
  22.  
  23. return 0;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement