Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
20784 | LeoWang | 计算多项式的值 | C++ | Accepted | 0 MS | 240 KB | 189 | 2023-06-20 08:39:26 |
#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; }