UVa 10347 - Medians

10347 - Medians

 * http://acm.uva.es/p/v103/10347.html

Summary
Given the lenghts of all three medians in a triangle, compute that triangle's area.

Explanation
This is a very easy problem. All you need to know is the correct formula, that's it. You may check out this. There is a trick. Output of your program must be satisfy for all the inputs, including the Negative inputs. Examples: For the Medians (2, 3, 4) the area of the triangle is 3.873, this is also the output for the Medians (-2,-3,-4).That means, negative values must be considered here.

Don't see the UVA-toolkit outputs. Outputs of this problem in UVA-toolkit is wrong. (Correction from SEC(Swordfish))

Input
3 3 3

Output
5.196