Problem 2463 · Hard
Sort robots and factories, then let each factory take a block of neighbouring robots within its limit.
Open the interactive visualisation