Problem 2361 · Hard

Minimum Costs Using the Train Line

Track the cheapest cost on each line at every stop; switching to express pays expressCost once, switching back is free.

Open the interactive visualisation