
점이 어느 사분면에 있는지 알아내는 문제
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x > 0) {
if (y > 0)
cout << "1";
else if (y < 0)
cout << "4";
}
else if (x < 0) {
if (y > 0)
cout << "2";
else if (y < 0)
cout << "3";
}
return 0;
}