Time Arithmetic by inaniwa

a[];Z;main(i,s){for(;gets(s);printf("%s=%02d:%02d:%02d\n",s,a[2]%24,a[1]%60,*a%60))for(i=6;i+3;a[6-i]=atoi(s+3*--i))Z=i<1&&(a[-i]+=a[3-i]+Z)/60;}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page