https://mirror.codeforces.com/contest/616/submission/295220955↵
↵
https://mirror.codeforces.com/contest/616/problem/C↵
↵
This is my solution. It is coming runtime error in cf but it is coming correct for that particular test case in my editor. Ik it can be solved using normal dfs just wanna practice dsu so if anyone can help in this particular code.
↵
https://mirror.codeforces.com/contest/616/problem/C↵
↵
This is my solution. It is coming runtime error in cf but it is coming correct for that particular test case in my editor. Ik it can be solved using normal dfs just wanna practice dsu so if anyone can help in this particular code.