https://www.acmicpc.net/problem/14681 #include using namespace std;int main(){ int x, y; cin>> x>>y; if(x>0 && y>0) cout 0) cout 0 && y #include using namespace std;int main(){ int a,b; cin>>a>>b; printf("%d",a>0?b>0?1:4:b>0?2:3);} 해당 방법은 삼항 연산자에 의해 도출된 코드이다. 삼항 연산자는 개념 정리 후 링크 옮길 예정이다. -> 개념 정리 완료.