#P5708. 【深基2.习2】三角形面积

【深基2.习2】三角形面积

Problem Description

The lengths of the three sides of a triangle are aa, bb, and cc. Its area is p(pa)(pb)(pc)\sqrt{p(p-a)(p-b)(p-c)}, where p=12(a+b+c)p=\frac{1}{2}(a+b+c). Given these three numbers, compute the area of the triangle and round it to 11 decimal place.

Input Format

The first line contains three real numbers aa, bb, and cc, separated by spaces.

Output Format

Output one real number representing the area of the triangle, accurate to 11 digit after the decimal point.

3 4 5
6.0

Hint

Constraints: The testdata guarantees that a triangle can be formed. 0a,b,c10000\leq a,b,c\leq 1000. Each side length has at most 22 digits after the decimal point in the input.

Translated by ChatGPT 5