Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
13210 祝易涛 求梯形的面积 C++ Accepted 2 MS 764 KB 174 2021-05-26 12:06:23

Tests(1/1):


Code:

#include <iostream> #include <cstdio> using namespace std; int main() { int h,a,b; float s; cin>>h; cin>>a>>b; s=(a+b)*h*0.5; printf("%.2f",s); return 0; }