Problem 3946 · Medium

Maximum Number of Items From Sale I

Each bought type earns one grant per multiple of its factor, once. A budget table then chooses the best mix of first copies and extra copies.

Open the interactive visualisation