https://www.acmicpc.net/problem/2525
a,b =map(int,input().split())
time =int(input())
newb = (b + time)%60
toadd = (b + time)//60
newa = (toadd+ a )%24
print(newa,newb)
# if newb
'알고리즘 문제풀이' 카테고리의 다른 글
공 바꾸기[백준 10813] (0) | 2024.07.08 |
---|---|
바구니 뒤집기[백준 10811] (0) | 2024.07.05 |
좋은 구간[백준 1059] (0) | 2024.07.02 |
반지[백준 5555] (0) | 2024.06.29 |
압축[백준 1662] (0) | 2024.06.26 |