Reachability from the Capital
HardRating 2000CodeforcesGraph Theory (MST, SCC, Bridges)
Approach hintTry it first, then revealHide
Condense strongly connected components into a DAG. Every component with in-degree zero, other than the one containing the capital, needs its own new road, and one road per such source is enough.