Edges in MST
HardRating 2300CodeforcesGraph Theory (MST, SCC, Bridges)
Approach hintTry it first, then revealHide
Process edges in groups of equal weight on top of the DSU of lighter edges. In a group, an edge inside one component is in no MST; among the rest, seen as a graph on components, bridges are in every MST and the others in some.