题解 | #时间转换#
时间转换
https://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899
#include <stdio.h>
int main()
{
long long int time , hour , min ,seconds;
scanf("%lld",&time);
hour = time/3600;
min = (time - hour*3600)/60;
seconds = time%60;
printf("%lld %lld %lld",hour,min,seconds);
return 0;
}
查看30道真题和解析