Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
2727 | A班-高思婕 | 计算多项式的值 | C++ | 通过 | 100 | 2 MS | 264 KB | 193 | 2024-12-21 10:58:59 |
#include <bits/stdc++.h> using namespace std; int main() { double a,b,c,d,x; cin>>x>>a>>b>>c>>d; double n = a*x*x*x+b*x*x+c*x+d; cout<<setprecision(7)<<fixed<<n<<endl; return 0; }