The Promised Land
Years after the Ishval Civil War, the Ishvalan refugees have now found a safe place for themselves which is a rectangular piece of land, surrounded by fences. The land can be thought of as a 2d grid which extends $N$ units vertically and $M$ units horizontally. It is divided into $N$ horizontal rows, which are numbered from $1$ to $N$, as you move from top to bottom and into $M$ vertical columns
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