Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156068 熊泊彧 08打车费用 C++ Accepted 1 MS 268 KB 344 2026-06-21 00:36:16

Tests(10/10):


Code:

#include <iostream> using namespace std; int main() { int s; cin >> s; double cost; if (s <= 2) { cost = 6; } else if (s <= 10) { cost = 6 + (s - 2) * 1.8; } else { cost = 6 + 8 * 1.8 + (s - 10) * 1.8 * 1.5; } cout << cost << endl; return 0; }