题解 | #时间转换#
时间转换
http://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899
#include<stdio.h> int main(){ int m; scanf("%d",&m); int h,x,t; h=m/3600; x=(m-3600*h)/60; t= m-3600*h-60*x; printf("%d %d %d",h,x,t); return 0; }
时间转换
http://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899
#include<stdio.h> int main(){ int m; scanf("%d",&m); int h,x,t; h=m/3600; x=(m-3600*h)/60; t= m-3600*h-60*x; printf("%d %d %d",h,x,t); return 0; }
相关推荐