Lolaandd @ 2023-09-27 13:18:11
#include<stdio.h>
int main(){
int s,v;
double t;
scanf("%d %d",&s,&v);
t=s*1.0/v;
if (t-(int)t>0){
t++;
}
int sum=t+10;
int h=sum/60;
int m=sum%60;
h=(7-h)%24;
if(h>=10){
if( 60-m>=10 ){
printf("%d:%d",h,60-m);
}
else {
printf("%d:0%d",h,60-m);
}
}else {
if( 60-m>=10 ){
printf("0%d:%d",h,60-m);
}
else {
printf("0%d:0%d",h,60-m);
}
}
return 0;
}
by Lolaandd @ 2023-09-27 13:18:38
要晕倒了 不知道错哪里了
by morningstar_sunset @ 2023-09-28 16:44:47
有可能要前一天晚上就出发