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

Problem Description

At the Department for Bills and Coins, an extension of today’s monetary system has newly been pro- posed, in order to make it fit the new economy better. A number of new so called e-coins will be produced, which, in addition to having a value in the normal sense of today, also have an InfoTechno- lo

...

You can find the full details of the problem e-Coins at UVa Online Judge

Sample Input

3
2 5
0 2
2 0
3 20
0 2
2 0
2 1
3 5
3 0
0 4
5 5

Sample Output

not possible
10
2

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

Solution originally posted at: Github by @codingsince1985