Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4095 | 杨洋杰 | 06计算f(x)的值 | C++ | Accepted | 0 MS | 264 KB | 221 | 2024-07-31 16:36:28 |
#include<iostream> #include<iomanip> #include<cmath> using namespace std; int main(){ double x,a,b,c,d; cin>>x>>a>>b>>c>>d; cout<<fixed<<setprecision(5)<<a*(x*x*x)+b*(x*x)+c*x+d<<endl; return 0; }