题解 | #牛牛学梯形#
牛牛学梯形
https://ac.nowcoder.com/acm/contest/18839/1026
#include<bits/stdc++.h> using namespace std; int main() { double a,b,c; cin>>a>>b>>c; double d=(a+b)*c/2; cout<<fixed<<setprecision(3)<<d<<endl; }
牛牛学梯形
https://ac.nowcoder.com/acm/contest/18839/1026
#include<bits/stdc++.h> using namespace std; int main() { double a,b,c; cin>>a>>b>>c; double d=(a+b)*c/2; cout<<fixed<<setprecision(3)<<d<<endl; }
相关推荐