CodeForces 51 F.Caterpillar(边双连通分量+树的直径)

NoSuchKey