Mischievous Monkey
CodeChefOpen on judge ↗
There is a baby monkey in Monkey Kingdom, who is so mischievous. His instructor wants him to learn to climb a rope.But when instructor instructs him to climb a rope of length L meter.He always climbs up M meters and slips down N meters.And he takes 1 min for each meter up and down. Now help the instructor to find the total time(in minutes) taken by the baby monkey to reach at the end of rope. Prin
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