Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74578 陈杨锦鸿 08打车费用 C++ Accepted 0 MS 272 KB 239 2024-05-25 16:08:44

Tests(10/10):


Code:

#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; } }