提交时间:2026-04-14 16:47:52
运行 ID: 436410
#include <iostream> using namespace std; int main() { double x; cin >> x; double y; if (x <= 15) { y = x * 6; } else { y = 15 * 6 + (x - 15) * 9; } cout << y << endl; return 0; }