Stop Spreading
CodeChefOpen on judge ↗
In a country , the government had found out that some of the people are affected by Corona Virus. So as to stop spreading to other residents nearby and as the hospitals are full. They thought of constructing a temporary boundary to that house and supply the needed items such as Food , Paracetamols, Hand Sanitizers etc. The cost per fence is $1\ dollar$. So if there is only $1$ house then the cost
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