← All problemsSign in

Rei Ayanami and Triangular Colony

Ayanami lives in colony whose height and width is $N$ dekameter. The shape of the colony is a right angled triangle. There are horizontal and vertical roads running from left to right and top to bottom respectively at a distance of 1 dekameter each. Ayanami's house is located on the top end of the colony. Ayanami wants to go to the candy shop to buy some candies. The candy shop is located on the o

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