12 条题解

  • 3
    @ 2024-3-24 10:13:06
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        double a,b,c,d,e,f,g,h,i,j,m,n,sum=0;
        cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j>>m>>n;
          sum=a+b+c+d+e+f+g+h+i+j+m+n;
        printf("%.2lf",sum/12);
    }
    
    • 1
      @ 2024-3-24 10:14:33
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
          double a,b,c,d,e,f,g,h,i,j,m,n,sum=0;
          cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j>>m>>n;
            sum=a+b+c+d+e+f+g+h+i+j+m+n;
          printf("%.2lf",sum/12);
      }
      
      • 0
        @ 2024-7-20 13:39:34

        #include<bits/stdc++.h> using namespace std; double a[101]; int main(){ double sum=0;

        for(int i=1;i<=12;i++){
        	cin>>a[i];
        	
        	sum=sum+a[i];
        }
        
        printf("%.2lf",sum/12);
        

        } //不是一个for循环都写不明白吗

        • 0
          @ 2024-3-24 15:08:24

          #include<bits/stdc++.h> using namespace std; int main(){ int b; b=12; double a,sum=0.00,d=0.00,i; for(i=1.00;i<=b;i++){ cin>>d; sum+=d; } a=1.0*sum/b; printf("%.2lf",a); return 0; } 没人用循环吗

          • 0
            @ 2024-3-6 19:05:57

            #include<bits/stdc++.h> using namespace std; int main(){ double a,b,c,d,e,f,g,h,i,j,m,n,sum=0; cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j>>m>>n; sum=a+b+c+d+e+f+g+h+i+j+m+n; printf("%.2lf",sum/12); }

            • -1
              @ 2024-3-24 9:23:40

              #include<bits/stdc++.h> using namespace std; int main(){ double a,b,c,d,e,f,g,h,i,j,m,n,sum=0; cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j>>m>>n; sum=a+b+c+d+e+f+g+h+i+j+m+n; printf("%.2lf",sum/12); }

              • -2
                @ 2024-3-24 9:35:24
                #include<bits/stdc++.h>
                using namespace std;
                int main(){
                    double a,b,c,d,e,f,g,h,i,j,m,n,sum=0;
                    cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j>>m>>n;
                      sum=a+b+c+d+e+f+g+h+i+j+m+n;
                    printf("%.2lf",sum/12);
                }
                
                • -3
                  @ 2024-3-17 9:26:03

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

                  • -4
                    @ 2024-3-17 11:22:55

                    #include<bits/stdc++.h> using namespace std; int main() { double a=0,c,sum=0; double z; while(a<12){ cin>>c; sum=sum+c; a++; } z=sum*1.0/12; printf("%.2lf",z); return 0; }

                    • -6
                      @ 2024-3-10 12:23:38

                      #include<bits/stdc++.h> using namespace std; int main(){ float a,b,c,d,e,f,g,h,i,j,k,l,m,nsum=0; cin>>a; cin>>b; cin>>c; cin>>d; cin>>e; cin>>f; cin>>g; cin>>h; cin>>i; cin>>j; cin>>k; cin>>l; m=1.0*(a+b+c+d+e+f+g+h+i+j+k+l)/12; printf("%.2lf",m); return 0; }

                      • -6
                        @ 2024-3-10 9:42:49
                        #include<iostream>
                        using namespace std;
                        int main(){
                            float q,w,e,r,t,y,u,i,o,p,a,s,d;
                            cin>>q;cin>>w;
                            cin>>e;
                            cin>>r;
                            cin>>t;
                            cin>>y;
                            cin>>u;
                            cin>>i;
                            cin>>o;
                            cin>>p;
                            cin>>a;
                            cin>>s;
                            d= (q+w+e+r+t+y+u+i+o+p+a+s)/12;
                        	printf("%.2lf", d);
                        	return 0;
                        }
                        
                        • -7
                          @ 2024-3-17 9:28:12

                          1+1=2

                          • 1

                          信息

                          ID
                          2138
                          时间
                          1000ms
                          内存
                          256MiB
                          难度
                          2
                          标签
                          递交数
                          473
                          已通过
                          238
                          上传者