#Reform

cf246 ENew Reform (并查集找环)

Berlandhas n citiesconnectedby m bidirectionalroads.Noroadconnectsacitytoitself,andeachpairofcitiesisconnectedbynomorethanoneroad.Itis ...