C++40分求助
查看原帖
C++40分求助
993142
name_x楼主2023/5/16 22:25

不知道错哪里???

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int bike=50,walk=0;
    int km;
    cin>>km;
    km*=1000;
    if((km/3+bike)>(km/1.2))
	{
		cout<<"Bike";
	}
	else if((km/3+bike)<(km/1.2))
	{
		cout<<"Walk";
	}
	else
	{
		cout<<"All";
	}
    return 0;
}
2023/5/16 22:25
加载中...