fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. double x, y;
  7. cin>>x>>y;
  8. if ((abs(x)+y<=4) && (y>=0)){
  9. cout<<"YES";
  10. }
  11. else cout<<"NO";
  12. return 0;
  13. }
Success #stdin #stdout 0s 3460KB
stdin
2 1
stdout
YES