fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int x1,x2,y1,y2;
  5. cin>>x1>>x2;
  6. cin>>y1>>y2;
  7. if(x1*y1>0 && x2*y2>0) cout<<'YES';
  8. else cout<<'NO';
  9. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
20047