Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
15594 | jiabokai | 计算多项式的值 | C++ | Accepted | 0 MS | 244 KB | 189 | 2023-04-24 19:11:31 |
#include<bits/stdc++.h> using namespace std; int main() { double x,a,b,c,d; cin>>x>>a>>b>>c>>d; double f; f=a*x*x*x+b*x*x+c*x+d; cout<<fixed<<setprecision(7)<<f; return 0; }