I'm getting W.A. Don't Know why . I tested the program with a lot of inputs, and the answers were correct. I will really appreciate some test cases... I'm also posting my code: #include <iostream> #include <stdio.h> using namespace std; int Find_Set(int); void Link(int,int); void Union(int,int); con...
Hi, I fixed my algorithm so that it can output correctly for your input case and all cases from below links, but I still get WA. http://online-judge.uva.es/board/viewtopic.php?t=6354&highlight=459&sid=8a38bf425fc76f799d6f997467f8212e http://online-judge.uva.es/board/viewtopic.php?t=777&h...
Hi,I get WA all the time, I don't know why!! I have tried all the input cases of below threads. (my code got the the same output) http://online-judge.uva.es/board/viewtopic.php?t=6354&highlight=459&sid=8a38bf425fc76f799d6f997467f8212e http://online-judge.uva.es/board/viewtopic.php?t=777&...