Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5874 李伟和 求梯形的面积 C++ Accepted 0 MS 264 KB 148 2024-12-20 19:21:45

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; }