题解 | #时间转换#
时间转换
http://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899
#include<stdio.h>
int main()
{
int seconds,h,min,s;
scanf("%d",&seconds);
h=seconds/3600;
min=(seconds%3600)/60;
s=seconds%3600%60;
printf("%d %d %d",h,min,s);
return 0;
}