← All problemsSign in

Robots Again

CodeChefRating 2800Open on judge ↗

You are given a string $s$ with length $N$ describing a row of cells numbered $1$ through $N$. Each character of this string is either a digit ('0' through '9', inclusive) or a dot ('.'). For each $i$ ($1 \le i \le N$), if the $i$-th character of $s$ is '.', the $i$-th cell is empty; if this character is the digit $d$, the $i$-th cell contains a robot that is able to move in a fixed range — betwee

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