Programming_prob/BaekJoon
[백준] 2525번 오븐 시계
YongArtist
2020. 10. 19. 20:40
입력 받은 수를 모두 분으로 환산해서 시간과 분으로 나타낸다.
1 2 3 4 5 6 7 8 9 | def solution(): h, m = map(int, input().split()) t = int(input()) M = 60*h + m + t if M >= 1440: M -= 1440 print(M//60, M % 60) solution() | cs |