Candy Land
CodeChefOpen on judge ↗
Neeladree is the new Mayor of Candy Land.His first task as a mayor is as follows. Candy Land is an island made up of candies.There are N houses in Candy Land connected with M bi-directional roads. It is possible to reach any house from any other house. There are K different types of candies present in Candy Land and each house has exactly one type of candy of infinite supply. To celebrate the Can
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