Region of Calabria
CodeChefOpen on judge ↗
Santa lives in the city of Calabria whose capital is Catanzaro. The city is beautiful and contains N different markets. You can consider the city as an undirected connected graph, in which the markets can be considered as nodes. Edge weights are 1. Now the problem with the Calabria is that K local dons are there and every don wants to rule the city. Thus after lots of wars they came to a conclusio
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