반응형
https://www.acmicpc.net/problem/2884
# @Author YoungMinKim
# baekjoon
h,m = map(int,input().split())
if m<45:
if h == 0:
print(23,m+60-45)
else:
print(h-1,m+60-45)
else:
print(h,m-45)
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 2914 (0) | 2020.08.26 |
---|---|
baekjoon - python - 2908 (0) | 2020.08.26 |
baekjoon - python - 2864 (0) | 2020.08.26 |
baekjoon - python - 2753 (0) | 2020.08.26 |
baekjoon - python - 2751 (0) | 2020.08.25 |
댓글