#include <iostream>
using namespace std;
int main() {
double x, y, a, n;
// 输入折叠自行车每分钟行驶的米数
cin >> x;
// 输入折叠自行车打开需要的分钟数
cin >> a;
// 输入山地自行车每分钟行驶的米数
cin >> y;
// 输入总共要行驶的千米数,转换为米
cin >> n;
n *= 1000;
double timeFolding = a + n / x; // 折叠自行车花费的总时间(包含打开时间)
double timeMountain = n / y; // 山地自行车花费的总时间
if (timeFolding < timeMountain) {
cout << "folding bicycle" << endl;
} else {
cout << "mountain bike" << endl;
}
return 0;
}
https://www.luogu.com.cn/problem/U513052
求,5 ~ 10个,玄关!