7 条题解

  • 1
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        double a , b , c;
        cin >> a >> b >> c;
        a = a + b + c;
        a = a / 3;
        printf("%.3f",a);
        return 0;
    }
    
    
    • 0
      @ 2024-1-26 19:52:45

      6

      • 0
        @ 2023-10-1 13:04:24
        #include <bits/stdc++.h>
        using namespace std;
        double n,a,b,c;
        int main()
        {
            cin>>a>>b>>c;
            cout << fixed << setprecision(3) << (a+b+c)/3;
        }
        
        
        • 0
          @ 2023-9-8 20:44:41
          #include<bits/stdc++.h>
          using namespace std;
          int main()
          {
              double a , b , c;
              cin >> a >> b >> c;
              a = a + b + c;
              a = a / 3;
              printf("%.3f",a);
              return 0;
          }
          

          A

          • 0
            @ 2023-7-20 18:56:02
            #include <cstdio>
            using namespace std;
            int main(){
                float a,b,c;
                scanf("%f%f%f",&a,&b,&c);
                printf("%.3f",(a+b+c)/3);
                return 0;
            }
            
            • 0
              @ 2023-7-10 20:49:19
              #include <bits/stdc++.h>
              using namespace std;
              int main()
              {
                  int a,b,c;
                  double s;
                  cin >> a >> b >> c;
                  s=a+b+c;
                  cout << fixed << setprecision(3) << s/3;
              }
              
              • 0
                @ 2021-10-7 14:15:22

                #include<bits/stdc++.h> using namespace std;

                int main(){ double a,b,c;//定义a、b、c cin>>a>>b>>c;//输入a、b、c cout<<(a+b+c)/3;//输出a、b、c的平均值 return 0; }

                • 1

                【入门】求三个数的平均数

                信息

                ID
                954
                时间
                1000ms
                内存
                16MiB
                难度
                4
                标签
                递交数
                247
                已通过
                117
                上传者