2 条题解

  • 2
    @ 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;
    }
    
    • -1
      @ 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
      标签
      递交数
      183
      已通过
      107
      上传者