C++ 代码
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
int hour,minute,second;
hour = n/3600;
minute = (n%3600)/60;
second = n - hour*3600 - minute*60;
printf("%d:%d:%d",hour,minute,second);
return 0;
}