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

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/2.0; printf("%.2f",s); return 0; }