Go with the flow
CodeChefOpen on judge ↗
Aquacorp, a company in the field of renewable energy, is a pioneer and likes pushing the boundaries in this sector. They generate electricity from the pressure of water flowing in pipelines. Every idea, however noble, must be efficient and cost-worthy for it to be sustainable. They are planning to do just that. The company needs to connect pairs of reservoirs with pipelines, so that when water
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