mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-11 00:30:27 +08:00
11 lines
204 B
C++
11 lines
204 B
C++
#include <iostream>
|
|
#include <iomanip>
|
|
#include <cmath>
|
|
using namespace std;
|
|
int main(){
|
|
double a,b,c,d,x;
|
|
cin >>x>>a>>b>>c>>d;
|
|
cout <<fixed<<setprecision(7)<<a*pow(x,3)+b*pow(x,2)+c*x+d;
|
|
return 0;
|
|
}
|