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