Mathematicians and Romeos
CodeChefOpen on judge ↗
Codekingdom consists of several states. Abizer the romeo is all set to date the princesses of the kingdom. These princesses live in 'Critical cities'. A Critical city is a city which, if destroyed along with the roads going from the city, then atleast one pair of cities wouldn’t have a route between them. Abizer has decided a unique gift corresponding to each princess. But he likes only K princes
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