GO Solution For UVa 10451 - Ancient Village Sports. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

In an ancient village there lived a number of people who liked different sorts of sports very much. But there was no built-in sports-ground. So they started looking for places. Ultimately what they found were the surfaces of the rocks with a shape of a regular polygon. Since the spectators are the p

...

You can find the full details of the problem Ancient Village Sports at UVa Online Judge

Sample Input

3 0.43301
6 2.59808
9 6.18182
0 2.33333

Sample Output

Case 1: 0.61418 0.17121
Case 2: 0.54352 0.24188
Case 3: 0.53226 0.25314

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

Solution originally posted at: Github by @codingsince1985