Robots
CodeChefOpen on judge ↗
There are $N$ robots who work for $Y$ days and on each day they produce some toys .on some days a few robots are given rest. So depending on the availability of robots owner has made a time table which decides which robots will work on the particular day. Only contiguous robots must be selected as they can form a link of communication among themselves. Initially, all robots have t
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.
Sign in to chat with the tutor and save your progress.
Sign in to start