#include<bits/stdc++.h> using namespace std; int main() { int a, b, c; cin>>a>>b>>c; double d; d=(a+b)*c/2.0;//或者强制转换类型d=(double).../2; printf("%.3lf",d); }
#include<bits/stdc++.h> using namespace std; int main() { int a, b, c; cin>>a>>b>>c; double d; d=(a+b)*c/2.0;//或者强制转换类型d=(double).../2; printf("%.3lf",d); }