Problem statement is here: http://acm.timus.ru/problem.aspx?space=1&num=1671
Tag: Disjoint-set
[Spoj] FRNDCIRC – Friend Circle
Problem statement is here: http://www.spoj.com/problems/FRNDCIRC/
[Spoj] FOXLINGS – Foxlings
Problem statement is here: http://www.spoj.com/problems/FOXLINGS/