#include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a;
cin>>b;
if((a>=-1000&&a<=1000)&&(b>=-1000&&b<=1000)){
if(a>0&&b>0){
cout<<"1";
}
if(a<0&&b>0){
cout<<"2";
}
if(a<0&&b<0){
cout<<"3";
}
if(a>0&&b<0){
cout<<"4";
}
}
}
'Coding test > 백준' 카테고리의 다른 글
백준 11650번 Python (0) | 2022.09.05 |
---|---|
백준 15596번 Python (0) | 2022.09.05 |
백준 18258번 Python (0) | 2022.09.05 |
백준 25304번 Python (0) | 2022.09.05 |