Its Approv Sir Bday
CodeChefOpen on judge ↗
BIRTHDAY SPECIAL As we all know todays is Apurv sir birthday,so Apurv sir booked a flat in all the blocks in hotel but the flat no. for party is not decided. suppose intially apurv sir is present in block M and you in block N. so you and apurv sir will move from block to block in a sequence. for you,moving closer to sir is a forward step and going away from sir is a backward step.Now, for every P
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