zzh1109 @ 2024-08-13 16:41:03
#include<bits/stdc++.h>
using namespace std;
int n,m,aa;
int main(){
cin>>n>>m;
int cc=ceil(n/m)+10;
while(cc>=60){
aa++;
cc-=60;
}
aa=8-aa;
cc=60-cc;
if(aa<10){
cout<<0<<aa-1<<":";
}
if(cc<10){
cout<<0<<cc-1;
}
if(aa>=10){
cout<<aa-1<<":";
}
if(cc>=10){
cout<<cc-1;
}
return 0;
}
by hanniemuo @ 2024-08-17 08:56:24
xh到此一游
by zzh1109 @ 2024-08-17 17:21:42
@hanniemuo 6
by a_Yfc15339219208 @ 2024-08-18 16:27:49
6
by zzh1109 @ 2024-08-19 10:06:57
@a_Yfc15339219208 6
by ycy130114 @ 2024-08-19 21:04:34
#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-=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 zzh1109 @ 2024-08-20 10:39:58
@ycy130114 谢大佬已关注