https://codeforces.me/edu/course/2/lesson/7/1/practice/contest/289390/problem/C
in this problem if i used path compression get wrong answer and accept without path compression can any one explain why
this code that get wrong answer https://codeforces.me/edu/course/2/lesson/7/1/practice/contest/289390/submission/132622662
this code that get accept https://codeforces.me/edu/course/2/lesson/7/1/practice/contest/289390/submission/132624996
If you could give an test , that would be great