Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160613 Kevin 求梯形的面积 C++ Accepted 1 MS 272 KB 152 2026-09-24 19:19:07

Tests(1/1):


Code:

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