Feel of life
CodeChefOpen on judge ↗
Professor Akshay Rajput is a mathematical genius. He even thinks of the smallest problem in mathematical way just to get the feel of life. Recently he went to watch a movie alone. Standing in the queue of escalator, he noticed the following things: - There were $m$ people standing in the queue including him, waiting to get on the escalator. - At each second, the front most person did one of the tw
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