ELE-WAITING
CodeChefOpen on judge ↗
There are N students Each of them want to use the elevator. All of them have to go to the top floor. You are given the time at which they reach the ground floor lobby (the place where the elevator is) . The elevator takes 0 time to go to top floor and to come back to the ground floor lobby. Capacity of the elevator is infinte. No of ways this can be done is X Note : Students arriving at same
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