SOURABH THE WATERMAN
CodeChefOpen on judge ↗
$City$ of $Miami$ is facing problem of shortage of water. In this toughest situation the only hope of People of Miami is their SuperHero, $SOURABH$: $THE$ $WATERMAN$. The City of Miami has a Tank and $N$ houses. The Tank has two outlets connected to inlets of two houses. Every house has one inlet, two outlets and a container to store water. The pipeline system is as follows
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