The move costs a minute
transcript
A courier crosses a grid. Blocks open at different minutes. One answer is off by one. Each move costs one minute. A block may open much later than the courier arrives. Here is why.
A move takes a minute. A block may open later. Arrive at the later of the two.
The best route crosses blocks in order. They arrive at minutes one, four, six, seven and eight. Block two opens at four. The courier waits. Each later move still adds a minute.
Forget the move, and a move is free. The example gives seven. The right answer is eight. One minute went missing.
The formula is one line. Larger of minute plus one, and opening. Wait inside the formula, not outside.
The arrival never falls. So the smallest entry is final. Dijkstra stays correct.
Charge for the move. Then wait for the opening. Take the larger. Full breakdown in the lecture.