Roadies and the Eliminations
CodeChefOpen on judge ↗
Everyone knows about the Roadies event in VESIT. In some year, many students participated in this event and thus eliminations became a headache for the event organisers. Each student were numbered from 1 to N. To make the eliminations, they decided to eliminate the students on the following rule : Start from student 1 Step 1 : Eliminate one student. Step 2 : Keep one student. Step 3 : Repeat
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