Lazy Shash
CodeChefOpen on judge ↗
Shash is a lazy guy. He has to do $N$ tasks and, as usual, decides to distribute them among others. For each task, he knows two values, $L[i]$ and $R[i]$ indicating that the completion of the task requires someone to work on in from time $L[i]$ to $R[i]$ (both inclusive). One person can only work on a single task at any point. Shash knows that he has an image for not doing much work himself and wo
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