Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
56256 | zhangweiran | 计算多项式的值 | C++ | Accepted | 0 MS | 240 KB | 198 | 2024-11-09 22:40:12 |
#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c,d,x; cin>>x>>a>>b>>c>>d; double result=a*x*x*x+b*x*x+c*x+d; cout<<fixed<<setprecision(7)<<result<<endl; return 0; }