lrqSB @ 2024-08-22 09:07:40
#include<bits/stdc++.h>
using namespace std;
int main(){
int s,v,ss,sh,f;
cin>>s>>v;
ss=ceil(s/v)/60;
sh=7-ss;
if (sh<=-1){ sh+=24;}
printf("%2d:",sh);
f=(50-ceil(s/v));
cout<<f%60-1;
}
by _Constantine_ @ 2024-08-22 09:12:56
@lion0617
#include<bits/stdc++.h>
using namespace std;
const int c=24,h=8,m=0,e=10;
int s,v;
int main()
{
cin>>s>>v;
int co=ceil(1.0*s/v)+e;
int st=ceil(1.0*co/60);
co%=60;
printf("%02d:%02d",(h-st+c)%c,(m-co+60)%60);
return 0;
}
求关
by MacArthur_sir @ 2024-08-22 09:13:31
@Constantine 666
by mingyunze @ 2024-08-22 09:15:33
@MacArthur_sir !!!!!!
by lrqSB @ 2024-08-22 09:44:42
@Constantine 这道题问题出在哪里
by _Constantine_ @ 2024-08-22 10:02:36
@lion0617 你输出前面多一个空格,你改成
printf("%02d:",sh);
试试
by _Constantine_ @ 2024-08-22 10:03:49
@lion0617 也不对,反正肯定是多空格的事
by _Constantine_ @ 2024-08-22 10:05:54
@lion0617 改成%02d后20pts
by _Constantine_ @ 2024-08-22 10:16:36
@medal_dreams @_joker_r 给他调
by _Constantine_ @ 2024-08-22 10:17:54
@Emil_
by Emil_ @ 2024-08-22 10:19:08
@Constantine
?