#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main() {
int x = 0;
int y = 0;
scanf(" %d", &x);
scanf(" %d", &y);
if (x > 0 && y > 0) {
printf("%d", 1);
}
else if (x < 0 && y>0) {
printf("%d", 2);
}
else if (x < 0 && y < 0) {
printf("%d", 3);
}
else if (x > 0 && y < 0) {
printf("%d", 4);
}
return 0;
}
'5_BAEKJOON' 카테고리의 다른 글
5 BAEKJOON) 2839 : 설탕 배달 (0) | 2022.11.07 |
---|---|
5 BAEKJOON) 백준1010 : 다리 놓기 (0) | 2022.11.07 |
5 BAEKJOON) 백준 10828 : 스택 (0) | 2022.11.07 |
5 BAEKJOON) 백준 : Stack에 대해 (0) | 2022.11.06 |
5 BAEKJOON) 백준 2563 : 색종이 (0) | 2022.11.05 |