Problem A
Parking Pandemonium

As part of Colorado School of Mines’ 150th anniversary this year, the university is engaged in many infrastructure projects including constructing new buildings and renovating existing ones. These projects include a new innovation center with makerspaces focused on cross-discipline collaboration, increased classroom capacity, additional student housing to allow Mines to accommodate all freshmen and sophomore students, and parking garages to accommodate the rising number of students and faculty.
Unfortunately, the construction of these new buildings has
temporarily reduced the amount of available parking in some
areas of campus. However, a bright Mines student named Hannah
realized that she can find a parking spot if she circles around
the parking lot long enough waiting for another student to
finish classes and head home. Hannah has determined that it
takes exactly
Given that Hannah circles the parking lot exactly
Input
The first line of input contains a single integer
The second line of input contains a single integer
The third line of input contains a single integer
Output
The first and only line of output should contain a single integer, the total amount of time (in minutes) it takes for Hannah to find a parking spot.
Sample Input 1 | Sample Output 1 |
---|---|
10 294 3 |
30 |
Sample Input 2 | Sample Output 2 |
---|---|
2 274 21 |
42 |