Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
28600 | lnx | 计算多项式的值 | C++ | Accepted | 0 MS | 252 KB | 179 | 2023-10-15 22:02:02 |
#include<iostream> using namespace std; int main(){ double a,b,c,d,x,f; scanf("%lf%lf%lf%lf%lf",&x,&a,&b,&c,&d); f=a*x*x*x+b*x*x+c*x+d; printf("%.7lf",f); return 0; }