PASSING THE PARCEL
CodeChefOpen on judge ↗
Once Chef and his friends were playing $Passing$ $the$ $Parcel$. There are a total of N kids playing the game. Let their numbers be $1,2,3...N$. All N kids were made to sit uniformly in a circle in number order (ie. from $1$ $to$ $N$ in CLOCKWISE DIRECTION). The Parcel is first handed over to the $first$ kid. After getting bored, chef thought to try something different. He randomly started to
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