← All problemsSign in

Even Odd Distance 2

XScope the professional gamer of Earth went to CsGo-World. There are $N$ planets in CsGo-World. For the working and smooth functioning of this world, the Legendary Eagle Master XAstralis connected these planets with Nova Bridges of different lengths. XAstralis being busy playing CsGo connected these planets minimally. He made sure that all the planets in the CSGo-World are connected. Also, a playe

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start