Please anybody help to get why I am getting wrong answer in question[Your text to link here...](https://www.codechef.com/problems/FROGV)↵
my solution is [Your text to link here...](https://www.codechef.com/viewsolution/39123486)↵
I am finding all connected components in the graph and assigning a color to it and the two nodes having same color print "YES"↵
else print<<"NO"
my solution is [Your text to link here...](https://www.codechef.com/viewsolution/39123486)↵
I am finding all connected components in the graph and assigning a color to it and the two nodes having same color print "YES"↵
else print<<"NO"