← All problemsSign in

Paint the city

The chef has been kicked out of his Restaurant De Café and is looking for a job to earn a living. He needs to earn N amount of money for his expenses which include his rent, his children’s education, his wife’s dramas and his quench for ladoos! Luckily our chef finds a job of painting the Outer Walls and the Rooftops only of each of the buildings in the entire city. Now a fun fact about this city

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