3 条题解

  • 1
    @ 2026-1-26 14:50:36
    #include <iostream>
    #include <cmath>
    #include <iomanip>
    using namespace std;
    double a,b,c,d,x;
    int main()
    {
    	cin >> x >> a >> b >> c >> d;
    	cout << fixed << setprecision(7) << a * pow(x,3) + b * pow(x,2) + c * x + d;
    	return 0;
    }
    • 1
      @ 2022-8-29 16:17:08
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	double x,a,b,c,d;
      	scanf("%lf %lf %lf %lf %lf",&x,&a,&b,&c,&d);
      	double ans=(1.0*a*pow(x,3.0))+(1.0*b*pow(x,2.0))+(1.0*c*x)+d;
      	printf("%.7lf",ans);
      	return 0;
      }
      
      • -2
        @ 2023-3-7 19:43:07

        #include<bits/stdc++.h> using namespace std; int main() { double x,a,b,c,d; scanf("%lf %lf %lf %lf %lf",&x,&a,&b,&c,&d); double ans=(1.0apow(x,3.0))+(1.0bpow(x,2.0))+(1.0cx)+d; printf("%.7lf",ans); return 0; }

        • 1

        信息

        ID
        821
        时间
        1000ms
        内存
        128MiB
        难度
        2
        标签
        递交数
        202
        已通过
        121
        上传者