mycode/Baekjoon/c/2525.c
2025-05-09 23:29:05 +09:00

9 lines
167 B
C

# include <stdio.h>
int main() {
int h, m, d, t;
scanf("%d %d",&h, &m);
scanf("%d",&d);
t = 60*h+m+d;
printf("%d %d",t/60%24,t%60);
return 0;
}