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

NoSuchKey