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