guangtougun @ 2024-08-20 09:55:10
#include <bits/stdc++.h>
using namespace std;
int main(){
int a;
double b=50.0,c=0.0;
cin>>a;
b=b+a/3.0;
c=a*1.2;
if(b>c){
cout << "Walk";
}
else if(b<c){
cout<<"Bike";
}
else{
cout<<"All";
}
return 0;
}
by D0000 @ 2024-08-20 09:58:26
是 /1.2
by zhizhenyaohanyu @ 2024-08-20 10:02:18
@guangtougun AC代码
#include<bits/stdc++.h>
using namespace std;
int a;
double b,c;
int main(){
cin>>a;
b=a/1.2;
c=a/3.0+27.0+23.0;
if(c>b)
cout<<"Walk";
else if(b>c)
cout<<"Bike";
else
cout<<"All";
return 0;
}
求关qwq
by guangtougun @ 2024-08-20 10:06:20
@zhizhenyaohanyu @D0000 感谢,已关