1 条题解

  • 0
    @ 2024-3-25 20:19:55
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        double a,b,c,d,x;//是double而不是int
        cin>>x>>a>>b>>c>>d;
        cout<<fixed<<setprecision(7)<<a*x*x*x+b*x*x+c*x+d;//公式
        return 0;
    }
    
    • 1

    信息

    ID
    13
    时间
    1000ms
    内存
    128MiB
    难度
    1
    标签
    递交数
    32
    已通过
    28
    上传者