← All problemsSign in

Make them work

Its time to put machines into work. There are N machines with 1 ≤ id ≤ N which are initially idle. Certain operations come over a time interval of 1 ≤ ti ≤ M. Remember that operations arrive only at integral times. Each operation requires certain amount of time to be completed. Your task is to assign each operation to a machine if possible. If multiple machines are capable to doing a work , assign

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