4 条题解

  • 2
    @ 2018-11-07 13:30:48

    人生苦短

    print(round((int(input())+int(input()))*int(input())/2,1))
    
  • 1
    @ 2017-09-29 15:56:00

    a=int(input())
    b=int(input())
    h=int(input())
    d=(a+b)*h/2
    S=round(d,1)
    print(S)
    应该没人不会了吧

  • 0
    @ 2021-02-06 15:48:25
    //用了万能头c++里还是没有round,才用了printf
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        float a,b,h;//因为要保留余数,所以用浮点数float
        cin>>a;
        cin>>b;
        cin>>h;
        float s=((a+b)*h/2);
        printf("%.1f",s); 
        return 0;
    }
    
  • 0
    @ 2019-04-25 22:03:34

    a=float(input())
    b=float(input())
    h=float(input())
    s=float((a+b)*h/2)
    print(round(s, 1))

  • 1

信息

难度
2
分类
(无)
标签
(无)
递交数
585
已通过
293
通过率
50%
上传者