a20111127 @ 2024-08-19 20:49:36
using namespace std; int main(){ double s,v; cin>>s>>v; double t=s/v; if(t-(int)t==0&&t<=1430){ int t1=int(t)+10; if(t1%60>50){ cout<<7-(t1/60)<<":0"<<60-(t1%60);} else{ cout<<7-(t1/60)<<":"<<60-(t1%60); } } else if(t-(int)t!=0&&t<=1430){ int t1=int(t)+11; if(t1%60>50){ cout<<7-(t1/60)<<":0"<<60-(t1%60);} else{ cout<<7-(t1/60)<<":"<<60-(t1%60); } } return 0; }```c
using namespace std; int main(){ double s,v; cin>>s>>v; double t=s/v; if(t-(int)t==0&&t<=1430){ int t1=int(t)+10; if(t1%60>50){ cout<<7-(t1/60)<<":0"<<60-(t1%60);} else{ cout<<7-(t1/60)<<":"<<60-(t1%60); } } else if(t-(int)t!=0&&t<=1430){ int t1=int(t)+11; if(t1%60>50){ cout<<7-(t1/60)<<":0"<<60-(t1%60);} else{ cout<<7-(t1/60)<<":"<<60-(t1%60); } } return 0; }
by a20111127 @ 2024-08-19 20:51:03
using namespace std; int main(){ double s,v; cin>>s>>v; double t=s/v; if(t-(int)t==0&&t<=1430){ int t1=int(t)+10; if(t1%60>50){ cout<<7-(t1/60)<<":0"<<60-(t1%60);} else{ cout<<7-(t1/60)<<":"<<60-(t1%60); } } else if(t-(int)t!=0&&t<=1430){ int t1=int(t)+11; if(t1%60>50){ cout<<7-(t1/60)<<":0"<<60-(t1%60);} else{ cout<<7-(t1/60)<<":"<<60-(t1%60); } } return 0; } _
_
**~~ _
#include<bits/stdc++.h>
using namespace std;
int main(){
double s,v;
cin>>s>>v;
double t=s/v;
if(t-(int)t==0&&t<=1430){
int t1=int(t)+10;
if(t1%60>50){
cout<<7-(t1/60)<<":0"<<60-(t1%60);}
else{
cout<<7-(t1/60)<<":"<<60-(t1%60);
}
}
else if(t-(int)t!=0&&t<=1430){
int t1=int(t)+11;
if(t1%60>50){
cout<<7-(t1/60)<<":0"<<60-(t1%60);}
else{
cout<<7-(t1/60)<<":"<<60-(t1%60);
}
}
return 0;
}
~~** _
by Grammar__hbw @ 2024-08-19 20:52:04
希望更丰富的展现?使用 Markdown、KaTeX。
by a20111127 @ 2024-08-19 20:53:07
代码是这个,请各位神犇帮帮我吧,求求了
by Emil_ @ 2024-08-19 20:54:01
@a20111127
来了宝贝,三剑客拜见,求关求关qwq,ac代码:
#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 Dejected @ 2024-08-19 20:54:15
@a20111127
来了宝贝,AC代码来啦 求关qwq
#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 lccjsw @ 2024-08-19 20:54:48
老三来了 壶关
#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 _Spectator_ @ 2024-08-19 20:55:24
@a20111127 你的做法可能复杂了,可以看看我的 code:
#include<bits/stdc++.h>
using namespace std;
long long s,v;
int main()
{
cin>>s>>v;
int t=480-ceil(s*1.0/v+10);
if(t<0)t+=1440;
printf("%02d:%02d",t/60,t%60);
return 0;
}
by zhizhenyaohanyu @ 2024-08-19 20:55:45
#mnclude<bits/stdc++.h>
using namespace std;
int main(){
double a,b,m,n,c,g;
cin>>a>>b;
c=ceil(a/b);
c+=10;
m=floor(c/60);
n=c-m*60.0;
if(n!=0){
n=60-n;
m=8-1-m;
if(i<0){
m=24-abs(m);
}
}
if(n==0){
m=8-m;
if(i<0){
m=24-abs(m);
}
}
if(i>=10&&n>=10){
cout<<m<<":"<<n<<endl;
}
if(i>=10&&n<10){
cout<<m<<":"<<"0"<<n<<endl;
}
if(i<10&&n>=10){
cout<<"0"<<m<<":"<<n<<endl;
}
if(i<10&&n<10){
cout<<"0"<<m<<":"<<"0"<<n<<endl;
}
return 0;
}
求关
by a20111127 @ 2024-08-19 22:07:18
谢谢大家