← All problemsSign in

Marking the Borders

Chef has been recruited to Chefland's Army. The army of a neighbouring country is continuosly infiltrating the Borders, since there is no proper marking or fencing on the land, chef's commanding officer(CO) commanded him to place milestone markings on the border. CO tells Chef that the border is an infinite $x$ axis with non-negative integer coordinates starting from $0$ and gives him four intege

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