1153: 【c03】海伦公式▃sqrt
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:32
Solved:21
Description
传说古代的叙拉古国国王海伦二世发现的公式,利用三角形的三条边长来取三角形面积。
已知△ABC中的三边长分别为a,b,c,求△ABC的面积。
Input
输入3个正整数,用空格隔开。
Output
输出1个浮点数,表示这个三角形的面积。
Sample Input Copy
3 4 5
Sample Output Copy
6
HINT
先看海伦公式
p = 三角形周长 ÷ 2