5 条题解

  • 4
    @ 2022-11-6 19:42:04

    其实吧,挺简单的

    #include <iostream>//hetao3097453
    #include <iomanip>
    using namespace std;
    int main()
    {
        double a,b,c;
        cin >> a;
        b = a * 3.0;
        c = b - 8.0;
        cout << b << endl;
        cout << c << endl;
        cout << fixed << setprecision(1) << (a + b + c) / 3 << endl;
        return 0;
    }
    
    
    • 2
      @ 2024-3-2 10:09:45

      其实吧,极其简单

      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
          int x;
          cin >> x;
          int a=x*3;
          int b=a-8;
          cout << a << endl << b << endl;
          cout << fixed << setprecision(1) << (a+b+x)/3.0;
          return 0;
      }
      

      已AC

      • 1
        @ 2023-10-6 16:48:39
        #include <iostream>
        #include <iomanip>
        using namespace std;
        int main()
        {
            int x, y, z;
            cin >> x;
            y = 3 * x;
            z = y - 8;
            cout << y << endl << z << endl << fixed << setprecision(1) << (x + y + z) / 3.0;
            return 0;
        }
        
        • 1
          @ 2023-8-24 10:43:43

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

              double rabbit,fox,sheep;
              cin>>rabbit;
              fox=rabbit*3;
              sheep=fox-8;
              cout<<fox<<endl<<sheep<<endl<<fixed<<setprecision(1)<<1.0*(rabbit+fox+sheep)/3;
          
          • 0
            @ 2023-9-8 21:03:29
            #include<bits/stdc++.h>
            using namespace std;
            int main()
            {
                int a , b , c;
                double v;
                cin >> a;
                b = a * 3;
                c = b - 8;
                v = (a + b + c) / 3.0;
                cout << b << endl << c << endl;
                printf("%.1f",v);
                return 0;
            }
            

            A

            • 1

            信息

            ID
            598
            时间
            1000ms
            内存
            64MiB
            难度
            3
            标签
            递交数
            273
            已通过
            143
            上传者