fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long a, b, c;
  6. cin>>a>>b>>c;
  7. if (a+b>c && a+c>b && b+c>a)
  8. cout<<"YES";
  9. else
  10. cout<<"NO";
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5320KB
stdin
1
1
1
stdout
YES