Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164385 屠思宇 求梯形的面积 C++ Accepted 1 MS 280 KB 176 2026-11-02 19:13:25

Tests(1/1):


Code:

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