Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
161523 王垚植 求梯形的面积 C++ Accepted 1 MS 272 KB 136 2026-10-06 09:37:52

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ double h,a,b; cin>>h>>a>>b; printf("%.2lf",(a+b)*h/2); return 0; }