题解 | #牛牛学梯形#
牛牛学梯形
https://ac.nowcoder.com/acm/problem/21995
#include<cstdio>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
printf("%.3f",(a+b)*c/2.0);
}
题解 文章被收录于专栏
https://ayx.moefox.tech/
牛牛学梯形
https://ac.nowcoder.com/acm/problem/21995
#include<cstdio>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
printf("%.3f",(a+b)*c/2.0);
}
https://ayx.moefox.tech/
相关推荐