Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77982 张湘哲 06计算f(x)的值 C++ Accepted 0 MS 280 KB 230 2024-06-15 19:18:11

Tests(10/10):


Code:

#include<iostream> #include<cmath> #include<iomanip> using namespace std; int main() { double a,b,c,d,x; cin>>x>>a>>b>>c>>d; double h; h=a*pow(x,3)+b*pow(x,2)+c*x+d; cout<<fixed<<setprecision(5)<<h; return 0; }