하루 3백준
[DAY 5] 백준 사분면 고르기, 알람시계 (if 문 끝~)
parrot1007
2020. 10. 28. 18:53
반응형
사분면 고르기(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')
알람시계(2884)
a,b=map(int,input().split())
if b>44:
print(a, b-45)
elif b<45 and a>0:
print(a-1, b+15)
else:
print(23, b+15 )
반응형