1 solutions

  • 0
    @ 2023-7-28 16:07:32
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        double a=0,b=0,h=0;
        cin>>a>>b>>h;
        printf("%.2f",(a+b)*h/2.0);
        return 0;
    }
    
    • 1

    Information

    ID
    231
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    5
    Tags
    # Submissions
    183
    Accepted
    42
    Uploaded By