Woburn Challenge 2016-17 Round 2 - Junior Division

"Please state the nature of the culinary emergency!" exclaims the Enterprise's EHC (Emergency Holographic Chef), having just been activated. It seems that Lieutenant Commander Le Ferge is extremely hungry, and will need to be brought a hot meal, stat!
The EHC is currently in the mess hall, and will need to make his way to
the bridge to save Le Ferge. The bridge is at the end of a hallway,
which is
Fortunately, there's a holographic emitter installed right at the
entrance to the mess hall, and there are
The existing set of
Le Ferge is very, very hungry, and only the EHC is qualified enough to
feed him! Given that time is of the essence, what's the minimum number
of additional holographic emitters which must be installed in order for
every point in the hallway to be at most
In test cases worth
In test cases worth another
Input Specification
The first line of input consists of three space-separated integers
Output Specification
Output a single integer - the minimum number of additional emitters required.
Sample Input
2 100 15
85
61
Sample Output
2
Sample Explanation
One possibility is to place two holographic emitters
Comments