UVa 10300

From Algorithmist
Jump to navigation Jump to search

10300 - Ecological Premium[edit]

Summary[edit]

The number of animals is not needed. Simply sum all the multiplications of the farmyard in square meters by the environment-friendliness and we're done.

Explanation[edit]

The number of animals is a red herring that distracts us and is useless. Read the problem carefully again.

Implementations[edit]

Input[edit]

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

Output[edit]

38
86
7445