题解 | #时间转换#
时间转换
https://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899
#include <stdio.h> int main() { long seconds; scanf("%d",&seconds); int hours,minute,sec; hours = seconds/60/60; minute = seconds/60%60; sec = seconds%60; printf("%d %d %d\n", hours,minute,sec); return 0; }