题解 | #时间转换#
时间转换
http://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899
#include <bits/stdc++.h>
using namespace std;
int main()
{
int seconds;
scanf("%d",&seconds);
int h=0,m=0,s=0;
h=seconds/3600;
seconds-=h*3600;
m=seconds/60;
seconds-=m*60;
s=seconds;
printf("%d %d %d\n",h,m,s);
return 0;
}