A. [语言过关]求梯形的面积

    Type: Default 1000ms 128MiB

[语言过关]求梯形的面积

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

求梯形的面积(tx.pas/c/cpp)

    已知梯形的上底为a厘米,下底为b厘米,高位h厘米,求梯形的面积。

输入格式

输入数据为一行3个实数,a,b,h分别为梯形的上底、下底和高。

输出

只有一行,输出梯形的面积。输出的结果保留两位小数。

样例输入

15 25 20

样例输出

400.00

样例

测试赛

Not Attended
Status
Done
Rule
IOI
Problem
4
Start at
2023-12-6 18:00
End at
2023-12-6 19:12
Duration
1.2 hour(s)
Host
Partic.
3