1033 时间转换1
#include <iostream>
using namespace std;
int main()
{
int t,h,m,s;
cin>>t;
h=t/3600;
m=t%3600/60;
s=t%60;
cout<<h<<":"<<m<<":"<<s;
return 0;
}
//1034 时间转换2
int h1,m1,s1;
char p;
int t2,h2,m2,s2;
cin>>h1>>p>>m1>>p>>s1;
cin>>t2;
h2=t2/3600;
m2=(t2%3600)/60;
s2=t2%60;
cout<<h1*3600+m1*60+s1*1<<endl;
cout<<h2/10<<h2%10<<":"<<m2/10<<m2%10<<":"<<s2/10<<s2%10;
//前导0的补位