Cualquier duda no dudes en contactar.
#include <bits/stdc++.h>
using namespace std;
int main()
{
int h, m, s, c;
while(scanf("%2d%2d%2d%2d", &h, &m, &s, &c) == 4) {
long long sum;
sum = c*10+s*1000+m*60000+h*3600000;
h = sum/8640000;
sum %= 8640000;
m = sum/86400;
sum %= 86400;
s = sum/864;
sum %= 864;
c = sum*100/864;
printf("%d%02d%02d%02d\n", h, m, s, c);
}
return 0;
}
Sigue en contacto con Isaac Lozano Osorio!