백준 14681번: 사분면 고르기 #Python

ColorlessDia·2024년 2월 11일

algorithm/baekjoon

목록 보기
61/836
x = int(input())
y = int(input())

if (x > 0):
    if (y > 0):
        print(1)
    else:
        print(4)
else:
    if (y > 0):
        print(2)
    else:
        print(3)

0개의 댓글