Safe Robots
CodeChefOpen on judge ↗
There are two robots, one belonging to Alice, and the other to Bob. These robots are currently standing in a lane. You are given this information by a string $s$, whose characters are either '.' denoting empty cell, 'A' denoting Alice's robot, or 'B' denoting Bob's robot. We guarantee that Alice's robot lies to the left of Bob's robot. You are given two integers $sa$, and $sb$. Alice's robot move
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