← All problemsSign in

Toy Factory

A custom toy factory gets order for N toys. The factory has M machines and each machine has rank R. A machine with rank r can manufacture 1 toy in the first r minutes 1 more toy in the next 2r minutes, 1 more toy in next 3r minutes and so on. For example if a machine is ranked 2.. it will manufacture one toy in 2 minutes one more toy in the next 4 minutes i.e at 6th minute and one more in the nex

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