cool hamsters never sleep

백준 14681. 사분면 고르기 본문

Python Algorithm

백준 14681. 사분면 고르기

슈슈 susu 2022. 7. 15. 09:33
x = int(input())
y = int(input())
-1000 <= x <= 1000
-1000 <= y <= 1000

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)

'Python Algorithm' 카테고리의 다른 글

백준 2525. 오븐 시계  (0) 2022.07.15
백준 2884. 알람 시계  (0) 2022.07.15
백준 2753. 윤년  (0) 2022.07.15
백준 9498. 시험 성적  (0) 2022.07.15
백준 1330. 두 수 비교하기  (0) 2022.07.15
Comments