Fluffy has a Robot
CodeChefOpen on judge ↗
Fluffy the squirrel has a robot that is standing on some square (i, j) of an m times n grid. Fluffy can give the robot a command of length k, which consists of the letters R, L, D or U. The top left square is (1, 1) while the bottom right square is (n, m). If the robot receives a command R, then it moves one square to the right. Similarly, U, D, L stands for up, down and left respectively. Some s
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