기출 문제 / 현대 Round 10, Problem 1

Road Repair Robot

The road repair robot developed by Company H is tasked with moving along a one-dimensional straight road and repairing holes that have appeared on the road. There are a total of N holes on this road, and the position of each hole is given as a non-negative integer.