← All problemsSign in

Robot Movings

CodeChefRating 1668Open on judge ↗

Given a square table sized $N$ x $N$ (rows and columns are indexed from 1) with a robot on it. \ The robot has a mission of moving from cell (1, 1) to cell ($N$, $N$) using only the directions "right" or "down". \ You are requested to find the number of different ways for the robot using exactly $K$ turns. \ The answer should be given with modulo $10^9+7$. #### Note: We define a "turn" as a right

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