Problem link is here https://codeforces.me/contest/1167/problem/C
I used disjoint union but don't know why the size array converts to zero entry in test case 3 although I initiated it to 1 and did only addition. Thank You.
Problem link is here https://codeforces.me/contest/1167/problem/C
I used disjoint union but don't know why the size array converts to zero entry in test case 3 although I initiated it to 1 and did only addition. Thank You.