C++80分求助
查看原帖
C++80分求助
760712
_fox_楼主2023/7/21 17:29
#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,bike=23,walk=0;
	cin>>n;
	bike+=n/3;
	walk+=n/1.2;
	if(bike<walk) cout<<"Bike";
	else if(walk<bike) cout<<"Walk";
	else cout<<"All";
	return 0;
}

2023/7/21 17:29
加载中...