| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74568 | 李君彦666 | 08打车费用 | C++ | Wrong Answer | 0 MS | 272 KB | 255 | 2024-05-25 16:06:45 |
#include <iostream> 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; } cout << n; }
------Input------
4
------Answer-----
9.6
------Your output-----
9.64