Skip to content

Latest commit

 

History

History

Small Triangles Large Triangles

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

You are given triangles, specifically, their sides , and . Print them in the same style but sorted by their areas from the smallest one to the largest one. It is guaranteed that all the areas are different.
The best way to calculate a volume of the triangle with sides , and is Heron's formula:
where .

Sample Input 0


Sample Output 0


Explanation 0