提交时间:2020-11-27 18:30:47
运行 ID: 10098
#include<bits/stdc++.h> using namespace std; int main(){ double a,b,h,ans=0; cin>>a>>b>>h; ans=(a+b)*h/2; printf("%.2lf",ans); return 0; }