kunshao 题解分享 · 2025/3/10
骑车与走路 - 题解
``` //骑车 27 + 23 + x / 3 //走路 x / 1.2 #include <bits/stdc++.h> using namespace std; int main() { double x; cin >> x; if ( (27+23+(x/3)) < (x/1.2) ) { cout << "Bike"; } else if ( (27+23+(x/3)) == (x/1.2) ) { cout << "All"; } else { cout << "Walk"; } return 0; } ```
查看全文
0 0 0 0