#include <stdio.h>
int main()
{
int UTC;
int BJT;
int h,m;
scanf("%d",&BJT);
h=BJT/100;
m=BJT%100;
if (m>60,h>24)
{
printf("请输入正确的时间和分钟。");
}
else
{
if (h>=8)
{
printf("%d",(h-8)*100+m);
}
else
{
printf("%d",(24-8+h)*100+m);
}
}
return 0;
}
时间换算(C语言)
猜你喜欢
转载自blog.csdn.net/NE000_/article/details/79795432
今日推荐
周排行