← All problemsSign in

Shil and the Toy Factory

Problem description. Shil is the owner of a magical toy factory. His factory has K machines which can produce toys simultaneously. The ith machine takes Ti minutes to produce a toy. As the festive season is nearing, the demand for toys has increased. Shil has recently received an order for N toys. Shil wants to deliver the order as soon as possible. Help him determine the minimum amount of time

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start