https://www.acmicpc.net/problem/14681
14681번: 사분면 고르기
점 (x, y)의 사분면 번호(1, 2, 3, 4 중 하나)를 출력한다.
www.acmicpc.net
삼항연산자를 활용한 간단한 문제.
내 제출
x = int(input())
y = int(input())
if x > 0 and y > 0:
print('1')
elif x < 0 and y > 0:
print('2')
elif x < 0 and y < 0:
print('3')
else:
print('4')