The Merry Go Round Craze
CodeChefOpen on judge ↗
A few even number of friends decided to play a game on a merry Go Round. At the start the ball is with player 0. The player throws the ball to the opposite player. Now ever player with the ball throws the ball to the opposite player. Now this game is played with the merry go round spinning. Now as the merry go round spins, when the ball is thrown, instead of ball being received by opposite player,
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