fork download
  1. // Level 1 - Contest 2 - Question 3 - Solution 1.
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int A = 0;
  9. int B = 0;
  10. int C = 0;
  11. cin >> A >> B >> C;
  12.  
  13. if(A + B >= C)
  14. cout << "Yes" << endl;
  15.  
  16. else
  17. cout << "No" << endl;
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5280KB
stdin
500 100 1000
stdout
No