← All problemsSign in

Sibling Rivalry

Byteland is a truly marvellous 2-dimensional landscape. It is of the shape of a rectangle with side lengths N & M and it has N*M identical cities each of dimension 1 x 1. Suriya is the proud ruler of Byteland. He had two sons Shyam and Varun who didn't get along that well due to their inherent differences. Suriya's golden rule has come to an end due to his sickness and the siblings started fighti

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