Problem 2463 · Hard

Minimum Total Distance Traveled

Sort robots and factories, then let each factory take a block of neighbouring robots within its limit.

Open the interactive visualisation