Type: Default 1000ms 256MiB

三角形面积

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.

Description

输入三角形的三条边a,b,c,输出三角形的面积。(a,b,c是正整数<100,满足三角形条件) 保留两位小数。

计算三角形面积用 海伦公式。 海伦公式:P代表三角形周长的一半。S代表三角形面积。

p=a+b+c2p = \dfrac{a+b+c}{2} s=p×(pa)×(pb)×(pc)s = \sqrt{p\times(p-a)\times(p-b)\times(p-c)}

Input Format

三个由空格隔开的整数,表示三角形的三条边。 数据保证三个整数肯定能组成三角形。

Output Format

一个实数,表示三角形的面积。

Sample

input

28 23 31

output

309.74
## Hint
保证a,b,c是正整数<100,满足三角形条件。

时间限制:$1 \text {s}$

空间限制:$256 \text {MB}$

20200906-贪心基础练习

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
11
Start at
2020-9-6 13:37
End at
2020-9-26 13:37
Duration
480 hour(s)
Host
Partic.
17