题解 | #时间转换#

时间转换

http://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899

#include <stdio.h>

int main() { long sconds = 0l;

scanf("%ld", &sconds);

printf("%d ", (sconds / 60) / 60);
printf("%d ", (sconds / 60) % 60);
printf("%d", sconds % 60);

return 0;

}

全部评论

相关推荐

09-05 21:54
已编辑
湖南工程学院 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务