← All problemsSign in

Lost in the Fest!!

CodeChefRating 872Open on judge ↗

*Bhoomi was excited for the annual fest at ***IIIT Pune***. She found a spot in the queue, eagerly waiting for the performance. But there was a problem: tall students ahead blocked her view! Frustrated, she wondered: "How much do I have to move to be able to see the performance?"* There are $N$ students who want to watch the performance at the fest. They're standing in a straight queue, and the

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