Problem 2554 · Medium

Maximum Number of Integers to Choose From a Range I

Pick the smallest allowed integers in order until the next one would exceed the sum limit.

Open the interactive visualisation