GO Solution For UVa 10347 - Medians. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Given the length of three medians of a triangle you will have to find out the area of the triangle. Unless you are weak in geometry you should know that median of a triangle is formed by connecting any vertex of a triangle and the mid-point of its opposite edge. So a triangle has three medians.

Inp

...

You can find the full details of the problem Medians at UVa Online Judge

Sample Input

3 3 3
3 3 3

Sample Output

5.196
5.196

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985