## DMPG '16 B1 - BFS

View as PDF

Points: 3 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Bob is your ordinary university student who waits tables at the local restaurant. However, Bob (as with all aspiring adolescents) is burdened with his crushing student debt and due to the stress, he cannot exhibit the maximum potential of his academic performance. To relieve himself of this stress, Bob engages in various recreational activities. One such activity is counting money.

Bob's First Salary is a very important milestone in his life. Luckily, Bob received his tips and wages in Canadian Currency meaning he can run home and count his money over and over again!

#### Input Specification

Five space-separated integers: , , , , indicating the quantity of each currency Bob received from work .
These variables represent the collective amount of money Bob received in nickels, dimes, quarters, loonies, and toonies respectively.

#### Output Specification

Your program should output the value of Bob's First Salary in cents.

#### Sample Input

0 0 0 1 0

#### Sample Output

100

## Comments

• commented on Feb. 13, 2022, 11:45 p.m.

When you thought the problem was going to be Breadth First Search...