全wa求助!!!样例过了!!!
查看原帖
全wa求助!!!样例过了!!!
501440
居然Tommy楼主2022/10/15 14:06
#include<iostream>
using namespace std;
int main()
{
	double n,a,b;
	cin>>n;
	a=n/1.2;
	b=n/3.0+27+23;
	if(a>b)
	{
		cout<<"bike";
	}
	else if(a<b)
	{
		cout<<"walk";
	}
	else
	{
		cout<<"all";
	}
	return 0;
}
2022/10/15 14:06
加载中...