示例代码:
#include <stdio.h>
int main(void){ int t = 0 , h = 0 , m = 0 , s = 0 ; scanf("%d",&t); h = t/3600 ; m = t%3600/60; s = t%3600%60; printf("%d:%d:%d",h,m,s); return 0;}