Problem 1655 · Hard

Distribute Repeating Integers

Each distinct value serves a group of customers whose demands fit its count, tracked as reachable bitmasks of served customers.

Open the interactive visualisation