getting wrong answer in chef and frog ...codechef question

Revision en3, by Tenac-ious-, 2020-10-25 22:59:44

Please anybody help to get why I am getting wrong answer in questionYour text to link here... my solution is Your text to link here... 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"

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Tenac-ious- 2020-10-25 22:59:44 148
en2 English Tenac-ious- 2020-10-25 22:55:28 71 Tiny change: 'lp to get the error in quest' -> 'lp to get why I am getting wrong answer in quest'
en1 English Tenac-ious- 2020-10-25 22:51:58 224 Initial revision (published)