Ramus_Dance
CodeChefOpen on judge ↗
This year Ramu is participating in a Dancing competition. The dance performance will be done on a linear stage marked with integral positions. Initially, Ramu is present at position $X$ and Ramu's dance partner is at position $Y$. Ramu can perform two kinds of dance moves. If Ramu is currently at position $K$, Ramu can: - Moonwalk to position $K+2$, or - Slide to position $K$−$1$ Ramu wants 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