| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74577 | 陈杨锦鸿 | 08打车费用 | C++ | Wrong Answer | 0 MS | 264 KB | 239 | 2024-05-25 16:07:49 |
#include<iostream> using namespace std; int main() { int n; cin >> n; if (n <= 2) { cout << 6; } if (2 > n && n <= 10) { cout << (n - 2) * 1.8 + 6; } if (n > 10) { cout << 6 + 8 * 1.8 + (n - 10) * 2.7; } }
------Input------
4
------Answer-----
9.6
------Your output-----