Research note

백준 14681번 C++

#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

Source

이 글은 기존 Tistory 블로그에서 옮겨온 글입니다. 원문: https://jms3084.tistory.com/33

#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”; } } }

Search titles, venues, and tags.

move · openesc close