注:
```cpp
#include<bits/stdc++.h>//万能头YYDS~
using namespace std;
int s,v;//路程&速度
int t;//时间
int h1,m1;//工资里要扣的小时和分钟
int h2=8,m2=0;//目前的小时和分钟
```
(开头忘粘了……
by Max6700 @ 2023-04-25 20:05:07
```cpp
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double s,v;
int n,h,t,m;
cin>>s>>v;
n=8*60+24*60;
t=ceil(s/v)+10;
n=n-t;
if(n>=24*60)
n-=24*60;
m=n%60;
h=n/60;
if(h<10)
if(m<10)
cout<<0<<h<<":"<<0<<m;
else
cout<<0<<h<<":"<<m;
else if(m<10)
cout<<h<<":"<<0<<m;
else
cout<<h<<":"<<m;
return 0;
}
```
这种题目你个小绿还做不出来?
by _Adolf_Hitler_ @ 2023-04-25 20:12:07
@[JODAN_POOLE](/user/931106)
a……我刚来3个月啊……
(不过谢谢%%%)
by Max6700 @ 2023-04-25 20:13:18
@[JODAN_POOLE](/user/931106) 这种题目你不解释你还发你的代码还有脸了
by Loser_Syx @ 2023-04-25 20:13:32
啊对对对对对对对对对对对对对对对对对对对
@[Saint_ying_xtf](/user/852144)
by _Adolf_Hitler_ @ 2023-04-25 20:21:57
a,过力!!!!!!
```cpp
#include<bits/stdc++.h>
using namespace std;
int s,v;//路程&速度
int t;//时间
int h1,m1;//工资里要扣的小时和分钟
int h2=8,m2=0;//目前的小时和分钟
int main(){
//正常拖进来两个
cin>>s>>v;
//算天算地算走路总时间
if(s%v!=0)t=s/v+1;
else t=s/v;
//计算要工资里扣的小时和分钟……
h1=t/60;
m1=t%60;
//处理1:小时
//掐指一算当前小时
if(m1+10>60 && m1+10%60!=0)h2=h2-(m1+10)/60-1-h1;
else if(m1+10>60 && m1+10%60==0)h2=h2-(m1+10)/60-h1;
else if(m1+10<60)h2=h2-1-h1;
//穿越时空,回到昨天惹~
if(h2<0)h2=24+h2;
//捕获一只野生前导0
if(h2<10)cout<<"0";
//拖出去,斩了!:D
cout<<h2<<":";
//处理2:分钟
//让本半仙算算……
if((m1+10)%60!=0)m2=60-(m1+10)%60;
else m2=0;
//前导0!
if(m2<10)cout<<"0";
//再斩一个!:)
cout<<m2;
return 0;
}
```
by Max6700 @ 2023-04-25 20:33:49
@[Max6700](/user/935012) 兄弟,我帮你把他举报了
by Liuzhenyuan @ 2023-05-03 18:06:25
就是那个JODAN_POOLE
by Liuzhenyuan @ 2023-05-03 18:07:18
@[Liuzhenyuan](/user/998446) 谢谢哥们儿(雾
by Max6700 @ 2023-05-03 18:17:29