Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long int hh,h,modh,mm,m,modm,ss,s,mods,ms,ns,total;
- while(scanf("%2lld%2lld%2lld%2lld",&hh,&mm,&ss,&ms)!=EOF){
- total = ms*10+ss*1000+mm*60000+hh*3600000;
- h = total/8640000;
- total = total%8640000;
- m = total/86400;
- total = total%86400;
- s = total/864;
- total = total%864;
- ns = (total*100)/864;
- printf("%lld%02lld%02lld%02lld\n",h,m,s,ns);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement