Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
51631 | 张思存 | 计算多项式的值 | C++ | Accepted | 0 MS | 252 KB | 219 | 2024-09-22 22:19:01 |
#include<bits/stdc++.h> using namespace std; int main() { double x, a, b, c, d, sum; cin >> x >> a >> b >> c >> d; sum = a * x* x* x + b * x*x + c * x + d; printf("%.7lf", sum); return 0; }