GO Solution For UVa 10041 - Vito's Family. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

The world-known gangster Vito Deadstone is moving to New York. He has a very big family there, all of them living in Lamafia Avenue. Since he will visit all his relatives very often, he is trying to find a house close to them.

Vito wants to minimize the total distance to all of them and has blackma


You can find the full details of the problem Vito's Family at UVa Online Judge

Sample Input

2 2 4
3 2 4 6
4 2 1 999 5

Sample Output


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

Solution originally posted at: Github by @codingsince1985