반응형
https://www.acmicpc.net/problem/2525
# @Author YoungMinKim
# baekjoon
import datetime as dt
h,m = map(int,input().split())
m2 = int(input())
now = str(dt.timedelta(hours=h,minutes=m)+dt.timedelta(minutes = m2))
h=now.split(':')[0]
m=now.split(':')[1]
if len(h)>2:
h = h.split(',')[1].split(' ')[1]
print(int(h),int(m))
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 2555 (0) | 2020.08.24 |
---|---|
baekjoon - python - 2530 (0) | 2020.08.24 |
baekjoon - python - 2523 (0) | 2020.08.24 |
baekjoon - python - 2480 (0) | 2020.08.24 |
baekjoon - python - 2446 (0) | 2020.08.24 |
댓글