← All problemsSign in

City Inspection

Chef Rams is famous for his amazing recipes and his use of colorful language, and he wants to open a new restaurant in the city of ManiLand. The city of ManiLand has a very regular grid structure. The city has three main roads from west to east, and N+1 shorter secondary roads from south to north. The first main road runs from (0, 0) to (N, 0), the second from (0, 1) to (N, 1), and the third fro

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