Mars township
CodeChefOpen on judge ↗
Problem description. Suppose you are living in 2098, NASA already reached on Mars and established several colonies over there but water supply system is not so good implemented. so NASA hired you to solve this problem you are given N pairs of cordinates(x,y) representing N colonies numbered 1,2,3,4,.......,N. And already implemented K connections (each given as a pair of coloney's number like i
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