提交时间:2024-10-07 19:42:59
运行 ID: 52509
#include <iostream> #include <iomanip> int main() { double x, a, b, c, d; double result; std::cin >> x >> a >> b >> c >> d; result = a * std::pow(x, 3) + b * std::pow(x, 2) + c * x + d; std::cout << std::fixed << std::setprecision(7); std::cout << result << std::endl; return 0; }