Loki-The Destroyer
CodeChefOpen on judge ↗
$Asgard$ is a legendary city having two great warriors $Thor$ and $Loki$, Thor on one hand The God Of Thunder is the savior of his people, so looking at $Thor's$ capabilities his father $Odin$ granted him throne. $Loki$ on other hand is jealous of him, so he makes a plan to overturn the situation in his favour Asgard is a town with $N$ cities numbered $(1, 2, ..., N)$ connected with 2-way roads
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