← All problemsSign in

Spinning Wheels

CodeChefRating 3087Open on judge ↗

Spinning Wheels is a game for one player. It is played on a square grid consisting of N rows and N columns. Each cell contains a wheel, which is colored into one of five colors -- red, orange, yellow, blue or violet (for convenience, we'll number the colors from 1 to 5, correspondingly). Each wheel also has two needles, and the needles are placed in one of the following positions (for convenience,

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