fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double x,y;
  6. cin >> x >> y;
  7. cout << (((x>=-2)&&(x<=3)&&(y>=2)&&(y<=5))||((x>3)&&(x<=5)&&(y>=2)&&(y<=3)) ? "YES": "NO");
  8. return 0;
  9. }
Success #stdin #stdout 0s 3464KB
stdin
-1.5 2.5
stdout
YES