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