fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. ios::sync_with_stdio(false);
  6. cin.tie(nullptr);
  7. freopen("quyhoachdong.inp","r",stdin);
  8. freopen("quyhoachdong.out","w",stdout);
  9.  
  10. long long a,b,c,m;
  11. while (cin >> a >> b >> c >> m) {
  12. bool bad = (m < 3) || (a == 0 || b == 0 || c == 0) || (m > a + b + c);
  13. cout << (bad ? "Yes" : "No") << '\n';
  14. }
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty