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