백준 | Baekjoon

[백준][14681] 사분면 고르기 | 파이썬

sungkshon 2024. 5. 26. 02:42
반응형

https://www.acmicpc.net/problem/14681

 

x = int(input())
y = int(input())
if x>0 and y>0:
    print(1)
elif x>0 and y<0:
    print(4)
elif x<0 and y>0:
    print(2)
else:
    print(3)
반응형