GO Solution For UVa 10295 - Hay Points. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Each employee of a bureaucracy has a job description — a few paragraphs that describe the responsibilities of the job. The employee’s job description, combined with other factors, such as seniority, is used to deter- mine his or her salary.

The Hay Point system frees the Human Resources department

...

You can find the full details of the problem Hay Points at UVa Online Judge

Sample Input

7 2
administer 100000
spending 200000
manage 50000
responsibility 25000
expertise 100
skill 50
money 75000
the incumbent will administer the spending of kindergarden milk money
and exercise responsibility for making change he or she will share
responsibility for the task of managing the money with the assistant
whose skill and expertise shall ensure the successful spending exercise
.
this individual must have the skill to perform a heart transplant and
expertise in rocket science
.

Sample Output

700150
150

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

Solution originally posted at: Github by @codingsince1985