2 条题解
-
412209水宇辰 (12209水宇辰) LV 9 @ 2021-11-04 20:22:26
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
double x,a,b,c,d;
cin>>x>>a>>b>>c>>d;
cout<<fixed<<setprecision(7)<<a*x*x*x+b*x*x+c*x+d;
return 0;
} -
-22021-11-21 21:30:38@
#include <iomanip>
#include <iostream>
using namespace std;
int main()
{
double a,b,c,d,x,M;
cin>>x>>a>>b>>c>>d;
M=(a*x*x*x)+(b*x*x)+(c*x)+d;
cout<<fixed<<setprecision(7)<<M;
return 0;
}
- 1
信息
- ID
- 2316
- 难度
- 1
- 分类
- (无)
- 标签
- 递交数
- 125
- 已通过
- 89
- 通过率
- 71%
- 被复制
- 2
- 上传者