#include<stdio.h> int main(){ int x = 0; int hour = 0; int minute = 0; int second = 0; scanf("%d",&x); hour = x/3600;//一个小时为3600秒 // printf("%d %d %d",x/3600,(x%3600)/60,x%60); minute = (x%3600)/60;//一分钟为60秒 second = x%60; printf("%d %d %d\n",hour,minute,second); return 0; }