반응형
사분면 고르기(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 )
반응형
'하루 3백준' 카테고리의 다른 글
[DAY 7] 빠른 A+B(15552), N 찍기(2741), 기찍 N(2742) (0) | 2020.10.29 |
---|---|
[DAY6] 백준 for문 시작~ 구구단(2739), A+B-3(10950), 합(8393) (0) | 2020.10.29 |
[DAY 4]두 수 비교하기, 시험 성적, 윤년 (0) | 2020.10.28 |
[day3] 사칙연산, 나머지, 곱셈 (0) | 2020.10.26 |
20/10/20 고양이, 개, A+B (0) | 2020.10.20 |