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('2')
elif x < 0 and y < 0:
print('3')
else:
print('4')
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('2')
elif x < 0 and y < 0:
print('3')
else:
print('4')