Problem 1564 · Medium

Put Boxes Into the Warehouse I

Push boxes into a warehouse from the left. A box can only occupy a room if it fits under every ceiling on its way in.

Open the interactive visualisation