#include<iostream>
using namespace std;
int main()
{
int a;
cin>>a;
if(a/1.2<50+a/3)
{
cout<<"Walk";
}
else if(a/1.2==50+a/3)
{
cout<<"All";
}
else
{
cout<<"Bike";
}
return 0;
}
想要其他题目答案,黑客小程序,或c++基础的,关注我。
求点赞!
#include<iostream>
using namespace std;
int main()
{
int a;
cin>>a;
if(a/1.2<50+a/3)
{
cout<<"Walk";
}
else if(a/1.2==50+a/3)
{
cout<<"All";
}
else
{
cout<<"Bike";
}
return 0;
}
想要其他题目答案,黑客小程序,或c++基础的,关注我。
求点赞!