GO Solution For UVa 10420 - List of Conquests. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

In Act I, Leporello is telling Donna Elvira about his master’s long list of conquests:

“This is the list of the beauties my master has loved, a list I’ve made out myself: take a look, read it with me. In Italy six hundred and forty, in Germany two hundred and thirty-one, a hundred in France, ninety

...

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

Sample Input

3
Spain Donna Elvira
England Jane Doe
Spain Donna Anna

Sample Output

England 1
Spain 2

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

Solution originally posted at: Github by @codingsince1985