5 条题解

  • 1
    @ 2023-12-25 13:15:48

    #include<bits/stdc++.h> using namespace std; int main() { int a,b,h;double s; cin>>a>>b>>h; s=(a+b)*h/2.00; cout<<fixed<<setprecision(2)<<s; return 0; }

    • 0
      @ 2025-8-29 2:04:57

      555

      • 0
        @ 2024-11-5 13:36:31

        #include<iostream>//b标准 #include<cmath>//数学库 #include<iomanip>// 小数运算 using namespace std; int main() { double a,b,h,s; cin>>a>>b>>h; s=(a+b)*h/2; cout<<fixed<<setprecision(2)<<s<<endl; return 0; }

        • 0
          @ 2024-10-12 19:52:44
          #include<bits/stdc++.h> 
          using namespace std; 
          int main() 
          { 
           int a,b,h;
           double s; 
           cin>>a>>b>>h; 
           s=(a+b)*h/2.00; 
           cout<<fixed<<setprecision(2)<<s; 
           return 0; 
          }
          
          • 0
            @ 2023-12-22 13:54:50

            #include<bits/stdc++.h> using namespace std; double a,b,h; int main() { cin>>a>>b>>h; cout<<fixed<<setprecision(2)<<(a+b)*h/2; return 0; }

            • 1

            信息

            ID
            7
            时间
            1000ms
            内存
            256MiB
            难度
            5
            标签
            递交数
            370
            已通过
            147
            上传者