fork download
  1. // Level 1 - Contest 2 - Question 3 - Solution 1.
  2. #include <iostream>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. #ifndef ONLINE_JUDGE
  10. freopen("C:\\Sublime\\input.txt","r",stdin);
  11. freopen("C:\\Sublime\\output.txt","w",stdout);
  12. #endif
  13.  
  14. int A = 0;
  15. int B = 0;
  16. int C = 0;
  17. cin >> A >> B >> C;
  18.  
  19. if(A + B >= C)
  20. cout << "Yes" << endl;
  21.  
  22. else
  23. cout << "No" << endl;
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0.01s 5304KB
stdin
500 100 1000
stdout
No