提交时间:2026-06-07 10:53:58
运行 ID: 443884
#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; }