已解决 何楷睿 高级守护 include<iostream> #include<cstdio> using namespace std; int main() { double x,y,r; cin>>x>>y>>r; double s; s=(x+y)*r/2; cout<<s<<endl; return 0; }