반응형
https://www.acmicpc.net/problem/14681
몇사분면인지 구별하는 문제로
if 조건문을 통해서 구별하면 되는 문제이다.
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")
elif x > 0 and y < 0:
print("4")
반응형