Corona and Planet G
CodeChefOpen on judge ↗
Corona virus is spreading at a fast pace in *Planet G*. Thankfully the government has come up with a vaccine and wants to test it. The vaccine has a unique quality, it works in the city it is tried on and also spread its effect on every city which is directly connected by a road to the city upon which the vaccine was tried. The government at planet G wants to maximize the number of city which gets
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