8 条题解

  • 3
    @ 2024-3-5 22:42:58
    #include<bits/stdc++.h> 
    using namespace std; 
    int main(){ 
        double b,sum=0,d,i; 
        cin>>b; 
        for(i=1;i<=b;i++){ 
            cin>>d;
            sum+=d;} 
            printf("%.2lf",sum/b);
        }
    
    • 1
      @ 2024-3-24 10:11:09
      #include<bits/stdc++.h> 
      using namespace std; 
      int main(){ 
          double b,sum=0,d,i; 
          cin>>b; 
          for(i=1;i<=b;i++){ 
              cin>>d;
              sum+=d;} 
              printf("%.2lf",sum/b);
          }
      
      • 1
        @ 2024-3-24 9:21:33
        #include<bits/stdc++.h> 
        using namespace std; 
        int main(){ 
            double b,sum=0,d,i; 
            cin>>b; 
            for(i=1;i<=b;i++){ 
                cin>>d;
                sum+=d;} 
                printf("%.2lf",sum/b);
            }
        
        • 0
          @ 2024-3-27 17:41:16

          #include<bits/stdc++.h> using namespace std; int main(){ double b,sum=0,d,i; cin>>b; for(i=1;i<=b;i++){ cin>>d; sum+=d;} printf("%.2lf",sum/b); }

          • 0
            @ 2024-3-24 9:19:52
            #include<bits/stdc++.h> 
            using namespace std; 
            int main(){ 
                double b,sum=0,d,i; 
                cin>>b; 
                for(i=1;i<=b;i++){ 
                    cin>>d;
                    sum+=d;} 
                    printf("%.2lf",sum/b);
                }
            
            • 0
              @ 2024-3-10 9:47:13
              #include<bits/stdc++.h>
              using namespace std;
              int main(){
                  double b,sum=0,i,d;
                  cin>>b;
                  for(i=1;i<=b;i++){
                      cin>>d;
                      sum=sum+d;
                  }
                  printf("%.2lf",sum/b);
              }
              
              • -1
                @ 2024-3-17 9:18:51

                #include<bits/stdc++.h> using namespace std; int main(){ double b; double d,i,sum=0; cin>>d; for(i=1;i<=d;i++){ cin>>b; sum+=b; } printf("%.2lf",sum/d); }

                • -1
                  @ 2024-3-10 12:24:27

                  #include<bits/stdc++.h> using namespace std; int main(){ double n,sum=0,i,d; cin>>n; for(i=1;i<=n;i++){ cin>>d; sum+=d; } printf("%.2lf",sum/n); return 0; }

                  • 1

                  信息

                  ID
                  2137
                  时间
                  1000ms
                  内存
                  256MiB
                  难度
                  2
                  标签
                  递交数
                  468
                  已通过
                  245
                  上传者