我的代码:
```cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
int s,v,l=480;
cin>>s>>v;
double t=ceil(s*1.0/v)+10;
if(t>l)l=1920;
l-=t;
double t1=floor(l*1.0/60);
if(t1>9)cout<<t1<<':';
else cout<<0<<t1<<':';
l-=t1*60;
if(l>9)cout<<l;
else cout<<0<<l;
}
```
by beigongbaishan @ 2024-07-17 14:51:15
求关~
by beigongbaishan @ 2024-07-17 14:51:46
大佬,求C语言。。。。
by KiritoFD @ 2024-07-17 15:09:50
```c
//#include<bits/stdc++.h>
#include<stdio.h>
using namespace std;
int s,v,t,oh,om,h,m;
int main()
{
scanf("%d%d",&s,&v);
t=s/v;
if(s%v!=0) t+=1;
t+=10;
h=t/60;m=t%60;
oh=h>8?(23-h+8):(7-h);//calculate hours
om=60-m;
oh<10?printf("0%d:",oh):printf("%d:",oh);//print hours
om<10?printf("0%d",om):printf("%d",om);//print minutes
return 0;
}
```
by fa_e_tong @ 2024-07-18 10:01:24