7 条题解

  • 2
    @ 2022-12-24 23:46:17
    #include<stdio.h>
    int main()
    {
    	float a,b,c;
    	scanf("%f%f%f",&a,&b,&c);
    	printf("%.1f",a*8.5+b*5.6+c*6.2);
    	return 0;
    }
    
    • 1
      @ 2023-10-6 16:55:00
      #include <iostream>
      #include <iomanip>
      using namespace std;
      int main()
      {
          double x, y, z;
          cin >> x >> y >> z;
          cout << fixed << setprecision(1) << x * 8.5 + y * 5.6 + z * 6.2;
          return 0;
      }
      
      • 1
        @ 2023-9-7 19:48:33
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            double a,b,c;
            cin >> a >> b >> c;
            double v = 8.5 * a + 5.6 * b + 6.2 * c;
            cout << fixed << setprecision(1) << v << endl;
            return 0;
        }//已AC
        
        • 1
          @ 2023-1-19 11:33:24
          #include <iostream>//hetao3097453
          #include <iomanip>
          using namespace std;
          int main()
          {
              double x,y,z;
              cin >> x >> y >> z;
              double ans = 8.5 * x + 5.6 * y + 6.2 * z;
              cout << fixed << setprecision(1) << ans << endl;
              return 0;
          }
          
          
          • 0
            @ 2023-10-15 9:54:13
            #include <bits/stdc++.h> 
            using namespace std;
            double a[3]={8.5,5.6,6.2};
            double ans(double x,double y,double z)
            {
                return x*a[0]+y*a[1]+z*a[2];
            }
            int main()
            {
                double x,y,z;
                cin>>x>>y>>z;
                cout<<ans(x,y,z)-0.04;
                return 0;
            }
            
            • 0
              @ 2023-9-1 7:58:16

              **

              #include <bits/stdc++.h>
              using namespace std;
              int main(){
                  cout << 82.8;
                  return 0;
              
              
              • 0
                @ 2023-8-24 11:08:14

                过辣!(脑残人士的欢呼)

                    double x,y,z;
                    cin>>x>>y>>z;
                    cout<<fixed<<setprecision(1)<<8.5*x+5.6*y+6.2*z;
                
                • 1

                信息

                ID
                607
                时间
                1000ms
                内存
                64MiB
                难度
                3
                标签
                递交数
                283
                已通过
                160
                上传者