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

Problem Description

German farmers are given a premium depending on the conditions at their farmyard. Imagine the following simplified regulation: you know the size of each farmer’s farmyard in square meters and the number of animals living at it. We won’t make a difference between different animals, although this is f

...

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

Sample Input

3
5
1 1 1
2 2 2
3 3 3
2 3 4
8 9 2
3
9 1 8
6 12 1
8 1 1
3
10 30 40
9 8 5
100 1000 70

Sample Output

38
86
7445

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

Solution originally posted at: Github by @codingsince1985