Christmas frenzy
CodeChefOpen on judge ↗
Christmas is a popular festival in Turing Land. Turing Land can be thought of as a 2D plane. The point $(a,b)$ denotes that the $x$ coordinate of the point is $a$ and the $y$ coordinate is $b$. The road network in Turing Land is in such a way that, from a point $(a,b)$, there is road connecting each of $(a+1,b)$,$(a-1,b)$,$(a,b+1)$,$(a,b-1)$, each of which are at a distance of $1$ unit from $(a
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