#P5708. 【深基2.习2】三角形面积
【深基2.习2】三角形面积
Problem Description
The lengths of the three sides of a triangle are , , and . Its area is , where . Given these three numbers, compute the area of the triangle and round it to decimal place.
Input Format
The first line contains three real numbers , , and , separated by spaces.
Output Format
Output one real number representing the area of the triangle, accurate to digit after the decimal point.
3 4 5
6.0
Hint
Constraints: The testdata guarantees that a triangle can be formed. . Each side length has at most digits after the decimal point in the input.
Translated by ChatGPT 5