← All problemsSign in

Help Martha

CodeChefRating 1676Open on judge ↗

Jonas asked Martha to stand at point $(x_1,y_1)$ on an infinite cartesian plane. He gave her a string $S$ which consists of operations in the form of characters **'R'**, **'L'**, **'U'**, and **'D'**. Each character of the string corresponds to the following movements: - **'R'** means moving right by $1$ unit i.e, $(x,y)$ to $(x+1,y)$. - **'L'** means moving left by $1$ unit i.e, $(x,y)$ 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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start