-
http://codeforces.com/problemset/problem/566/D
-
http://codeforces.com/problemset/problem/469/D
-
Uva
-
http://codeforces.com/group/qcIqFPYhVr/contest/203881/problem/I
-
http://codeforces.com/group/qcIqFPYhVr/contest/203881/problem/D
-
https://www.hackerearth.com/code-monk-disjoint-set-union/algorithm/city-and-soldiers/