← All problemsSign in

Chef and Big Matrix

CodeChefRating 3101Open on judge ↗

Chef has a rectangular table consisting of N rows and M columns. Rows are numbered by integers from 1 to N from top to bottom and columns are numbered from 1 to M from left to right. Let (x, y) denote the cell corresponding to xth row and yth column. Chef has two bunnies, both initially at the cell (1, 1). He wants them to get to the cell (N, M). Each of the bunny can move from some cell (x, y) t

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