| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74586 | 吴雨轩 | 08打车费用 | C++ | Accepted | 1 MS | 280 KB | 270 | 2024-05-25 16:14:39 |
#include <iostream> #include <iomanip> using namespace std; int main() { int n; cin >> n; if (n <= 2) { cout << 6; } if (n > 2 && n <= 10) { cout << (n - 2) * 1.8 + 6; } if (n > 10) { cout << 6 + 8 * 1.8 + (n - 10) * 2.7; } }