Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
117693 | 常钰杰 | 06计算f(x)的值 | C++ | Accepted | 1 MS | 276 KB | 289 | 2025-04-19 17:40:24 |
#include<bits/stdc++.h> using namespace std; double Hs(double x,double a,double b,double c,double d) { double ans; ans=a*x*x*x+b*x*x+c*x+d; return ans; } int main() { double x,a,b,c,d; cin>>x>>a>>b>>c>>d; printf("%.5lf",Hs(x,a,b,c,d)); return 0; }