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

Problem Description

The gopher family, having averted the canine threat, must face a new predator.

The are n gophers and m gopher holes, each at distinct (x, y) coordinates. A hawk arrives and if a gopher does not reach a hole in s seconds it is vul- nerable to being eaten. A hole can save at most one gopher. All the


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

Sample Input

2 2 5 10
1.0 1.0
2.0 2.0
100.0 100.0
20.0 20.0

Sample Output


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

Solution originally posted at: Github by @codingsince1985