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)

이건 나의 코드

 

다른 사람의 코드도 별로 다를게 없었다 !

'programming' 카테고리의 다른 글

[백준 15552] 빠른 A + B  (0) 2021.08.10
[백준 8393] 합  (0) 2021.08.10
[백준 python] 2753 윤년  (0) 2021.07.28
vscode 커맨드 정리  (0) 2021.05.10
컴퓨터 언어를 배울때 가장 중요한 것  (0) 2021.04.15

+ Recent posts