Galaxies and Beyond
CodeChefOpen on judge ↗
Andromeda has a deep interest in stars, galaxies and the universe since childhood. She has taken several picture of the night sky and based on that, she has noted down the co-ordinates of all the stars in 3D space (the coordinate values are in light years). The coordinates of two stars may not be distinct due to human error. She considers two stars to be in same galaxy if euclidiean distance betwe
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