


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include <iostream> using namespace std; int main() { int x, y = 0; while (1) { cin >> x >> y; if (x >= –1000 && x <= 1000 && x != 0 && y >= –1000 && y <= 1000 && y != 0) break; } if (x > 0 && y > 0) cout << 1 << endl; else if (x < 0 && y>0) cout << 2 << endl; else if (x < 0 && y < 0) cout << 3 << endl; else cout << 4 << endl; return 0; } | cs |