GO Solution For UVa 10522 - Height to Area. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

It’s an easy geometry problem. For any triangle ABC we know that the height from A to the line BC (or it’s extension) is Ha, from B to the line AC (or it’s extension) is Hb and from C to the line AB (or it’s extension) is Hc. Now you are given these three values and you have to figure out the area o

...

You can find the full details of the problem Height to Area at UVa Online Judge

Sample Input

1
31.573 22.352 63.448
46.300 50.868 86.683
22.005 24.725 22.914
5.710 25.635 32.805

Sample Output

1517.456
2219.941
311.804
These are invalid inputs!

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

Solution originally posted at: Github by @codingsince1985