jiemoweipaocai @ 2024-07-05 20:49:39
#include <stdio.h>
int main (void)
{
int s,v,h,m,T;
float t;
scanf("%d,%d",&s,&v);
t=(s*1.0)/v;
T=s/v;
if((t-T)!=0.0)
{
T=T+1;
h=(T+10)/60;
m=(T+10)%60;
if(m==0)
printf("%02d:%02d",7-h%24,m);
else
printf("%02d:%02d",7-h%24,60-m);
}
else {h=(T+10)/60;
m=(T+10)%60;
if(m==0)
printf("%02d:%02d",7-h%24,m);
else
printf("%02lld:%02lld",7-h%24,60-m);
}
return 0;
}