fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int h=0, l=0, a=0, b=0;
  7. bool check = false;
  8.  
  9. cin>>h>>l>>a>>b;
  10.  
  11. if((a<=l && b<=h*2) || (b<=l && a<=h*2))
  12. check=true;
  13.  
  14. if(check)
  15. cout<<"YES";
  16. else
  17. cout<<"NO";
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5312KB
stdin
50 20 30 30
stdout
NO