80分求助!!
查看原帖
80分求助!!
1358949
Centuy楼主2024/12/28 09:26
#include <bits/stdc++.h>
using namespace std;
double Distance;
double Bike_time, Walk_time;

int main() {
	cin >> Distance;
	Bike_time = Distance / 3.00 + 27.00 + 23.00;
	Walk_time = Distance / 1.20;
	if (Bike_time > Walk_time) {
		cout << "Walk";
	} else if (Bike_time < Walk_time) {
		cout << "Bike";
	} else {
		cout << "ALL";
	}

	return 0;
}
2024/12/28 09:26
加载中...