https://www.acmicpc.net/problem/2525 2525번: 오븐 시계 첫째 줄에 종료되는 시각의 시와 분을 공백을 사이에 두고 출력한다. (단, 시는 0부터 23까지의 정수, 분은 0부터 59까지의 정수이다. 디지털 시계는 23시 59분에서 1분이 지나면 0시 0분이 된다.) www.acmicpc.net 풀이 a,b = map(int, input().split()) c = int(input()) h = (b+c)//60 m = (b+c)%60 if b+c >= 60: if a+h >= 24: a = a - 24 print(a + h , m) else: if a >= 24: a = a - 24 print(a, b+c)