ZooZooland Water Shortage
CodeChefOpen on judge ↗
There are N villages in zoozoo land. Every year it rains in only one village but all others need water. The water is sufficient to fill needs of all the villages but they have shortage of connecting pipes. So they take raw material from earth to build their pipeline system. The data is corrupted so we only have information about distances between M pairs of villages. It is guaranteed that each an
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