← All problemsSign in

Babu Rao and his hera pheri

Problem description: Team Babu bhai has somehow got selected for the ACMICPC final round in South Dakota. He has Raju and Shyaam with him as his team members. The contest has started. They have submitted all the questions except one. During the last few minutes, Raju and Shyaam fell asleep. Now, only few K minutes are left for the contest to end. So, its all on Babu bhai to solve that last questi

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start