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

Problem Description

The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has a very poor system of public highways. The Flatopian government is aware of this problem and has already constructed a number of highways connecting some of the most important towns. However, there are still some towns that

...

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

Sample Input

1

9
1 5
0 0
3 2
4 5
5 1
0 4
5 2
1 2
5 3
3
1 3
9 7
1 2

Sample Output

5 7
1 6
3 8
3 7
4 9

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

Solution originally posted at: Github by @codingsince1985