SPY, JUST ANOTHER SPY
CodeChefOpen on judge ↗
A building contains $N$ floors. Each floor has $N$ rooms. From one room it is possible to go to the next adjacent room to the right or next adjacent room above. Agent 011 starts from the first room on the first floor and needs to reach the top most corner of such a building (i.e $N^{th}$ room of the $N^{th}$ floor). But the enemy anticipates Agent 011 and has laid a trap. If 011 crosses the diagon
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