The Codeland Continent
CodeChefOpen on judge ↗
You have been selected as new mayor in the codeland continent.It has N number of countries . The codeland is a big continent in which some countries are joined to each other and some are not.The strength of a country is determined by the addition of the strength of its own and the strength of each country it is connected to. To maintain the peace in the continent you need to analyse the strength
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