提交时间:2026-06-07 08:48:30

运行 ID: 443839

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