| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 15 | 14 | 13 | 100.000% |
For your next summer holidays, you are planning an exciting road trip covering the full length of the famous M6 motorway.
You have your route planned out to balance travel time between stops, but time is a little short so you will have to strike one of the stops from your itinerary and continue straight past it to the next one.
To make the longest drive between stops as short as possible, which stop should you eliminate from your itinerary?
The first stop and last stop denote your start and end point respectively and cannot be skipped.
Output the smallest integer distance between stops you can have, if you remove exactly one stop from the itinerary and it is not the first or last.
5 0 50 125 175 236
111
4 100 300 600 10000
9400