
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Calculate the final vector of how the robot travels after executing all instructions once - it consists of a change in position plus a change in direction.
The robot stays in the circle if and only if (looking at the final vector) it changes direction (ie. doesn't stay pointing north), or it moves 0.