IEEE Matrix
CodeChefOpen on judge ↗
Given a matrix of size n× m, every block in the matrix at row i and column j is associated with 2 values : c(i, j) denotes the number of coins available at the block and a character state(i, j) which is either W or L which denotes whether the block is water or land re- spectively. A traveller can travel from a land block and move one step right, left, up or down to another land block. The
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