https://www.acmicpc.net/problem/2525


풀이
A, B = map(int,input().split())
C = int(input())

B += C
A = A + (B//60)

A = A % 24
B = B % 60

print(A,B)

 

+ Recent posts