You are viewing a single comment's thread. Return to all comments →
Guys , its a Basic disjoint set implemtation using krushkal;
The catch is it will pass all except 7 testcase due to typedef ,
we need to change all the int to long long , cause we multiply
So, we need to even change the long long inside main loop also instead of typecasting at result!!
Seems like cookies are disabled on this browser, please enable them to open this website
Roads and Libraries
You are viewing a single comment's thread. Return to all comments →
Guys , its a Basic disjoint set implemtation using krushkal;
The catch is it will pass all except 7 testcase due to typedef ,
we need to change all the int to long long , cause we multiply
So, we need to even change the long long inside main loop also instead of typecasting at result!!