思路·思考

时间转换基础
1h=60min
1min=60s
1h=60*60s=3600s
/* 使用的是C语言 */
#include<stdio.h>
int main(){
    int seconds,h,m,s;
    scanf ("%d",&seconds);
    h=seconds/3600;
    m=(seconds%3600)/60;
    s=(seconds%3600)%60;
    printf("%d %d %d",h,m,s);
}

参考资料