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 Emil_ @ 2024-08-22 10:20:01
@lion0617
#include <bits/stdc++.h>
using namespace std;
double s,v,m;
int n,a,t,b;
int main(){
cin>>s>>v;
n=8*60+24*60;
t=ceil(s/v)+10;
n=n-t;
if(n>=24*60) n-=24*60;
b=n%60;
a=n/60;
if(a<10){
if(b<10) cout<<"0"<<a<<":0"<<b;
else cout<<"0"<<a<<":"<<b;
}else{
if(b<10) cout<<a<<":0"<<b;
else cout<<a<<":"<<b;
}
return 0;
}
by _Constantine_ @ 2024-08-22 10:20:29
@Emil_ 杰哥给他调
by Emil_ @ 2024-08-22 10:21:38
@Constantine
没工夫
by _Constantine_ @ 2024-08-22 10:22:44
@AI9527
by AI9527 @ 2024-08-22 10:42:58
@lion0617 终于调完了
#include<bits/stdc++.h>
using namespace std;
int main(){
int s,v,ss,sh,f;
cin>>s>>v;
ss=ceil((s*1.0/v+10)/60);
sh=8-ss;
while(sh<0)
sh+=24;
printf("%02d:",sh);
f=(50-ceil(s*1.0/v));
while(f<0){
f+=60;
}
if(f<10)
cout<<'0'<<f;
else cout<<f;
}
by AI9527 @ 2024-08-22 10:43:22
@lion0617 求关