2525번 풀이 [Python]

sua·2022년 5월 22일
0

Baekjoon

목록 보기
32/161
post-thumbnail

문제


풀이

h, m = map(int,input().split())
t = int(input())

if (t + m) >= 60:
    h += (t + m) // 60
    m = (t + m) % 60
    if h >= 24 :
        h %= 24
else:
    m += t
    
print(h, m)
profile
가보자고

0개의 댓글