FangDeLiang @ 2024-11-10 10:18:21
by LionBlaze @ 2024-11-10 10:20:26
@FangDeLiang 出门,右转,题解区,请。
by FangDeLiang @ 2024-11-10 10:46:52
有三个结点错误求解
#include<iostream>
using namespace std;
int main(){
int s,v;
int time=0;
cin>>s>>v;
time = s/v + 10;
if((s/v)!=0) time++;
int end = 480;
int beg = end - time;
printf("%02d:%02d\n",beg/60,beg%60);
}
by xiaoyu39198 @ 2024-11-17 13:50:14
想发题解但是晚了 来讨论区帮助有需要的人吧
printf("%02d:%02d",(32-(int)ceil((double)(ceil((double)a/b)+10)/60))%24,60-((int)(ceil((double)a/b)+10)%60));
by xiaoyu39198 @ 2024-11-17 13:53:19
@FangDeLiang
by FangDeLiang @ 2024-11-17 14:00:20
@xiaoyu39198感谢