Dinosaur Destruction
CodeChefOpen on judge ↗
The next jump takes you to a bizarre yet familiar group of islands. You walk up to Prof Paradox and you get to know about a recent reverse-engineering debacle that brought back the Dinosaurs. These Dinosaurs escaped from their captivity and now are set to destroy the group of islands. Each island has a defense power of $Ai$. Some of these islands are connected with a bridge. The total power of
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