Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159111 王垚植 求梯形的面积 C++ Wrong Answer 1 MS 268 KB 163 2026-08-25 20:32:38

Tests(0/1):


Code:

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


Run Info:

------Input------
3 1 2
------Answer-----
4.50
------Your output-----
2.00