求大佬帮助
by Mlao @ 2024-04-14 19:28:53
改了一下,80求帮助
```#include<bits/stdc++.h>
using namespace std;
int main(){
int t,v,s;
cin>>s>>v;
int a=s/v/60,b=50-s/v%60;
if(s%v!=0) b--;
if(b<0) {
b+=60;a--;
}
if(a>7) {
if(24-a+7==9||24-a+7==8) {
if(b>10) cout<<0<<24-a+7<<":"<<b;
else cout<<0<<24-a+7<<":"<<0<<b;
}
else{
if(b>10) cout<<24-a+7<<":"<<b;
else cout<<24-a+7<<":"<<0<<b;
}
}
if(a<=7){
if(b>10) cout<<0<<7-a<<":"<<b;
else cout<<0<<7-a<<":"<<0<<b;
}
}
by Mlao @ 2024-04-14 19:33:46
```
#include<bits/stdc++.h>
using namespace std;
double s,v;
long long t;
int main()
{
cin>>s>>v;
t=ceil((double)s/v+10);
int h=(8-t/60>=0)?7-t/60:31-t/60;
int m=60-t%60;
if(h/10==0)
{
cout<<0;
}
cout<<h<<":";
if(m/10==0)
{
cout<<0;
}
cout<<m;
return 0;
}
```
by Lucermaire @ 2024-05-10 10:28:24
@[Mlao](/user/1092199) 可以试试看这么做
by Lucermaire @ 2024-05-10 10:29:08