Require help for spoj question BTCODE_G

Revision en2, by codeDominus, 2017-02-08 15:05:14

LINK for the problem I am learning DSU and came up with this question but could not apply DSU. It will be of great help if someone tell the logic for solving this problem.

Tags dsu

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English codeDominus 2017-02-08 16:55:16 79
en3 English codeDominus 2017-02-08 15:06:01 7 Tiny change: ' problem](www.spoj.c' -> ' problem](http://www.spoj.c'
en2 English codeDominus 2017-02-08 15:05:14 14 Tiny change: ' problem](http://http://www.spoj.c' -> ' problem](www.spoj.c'
en1 English codeDominus 2017-02-08 15:04:05 262 Initial revision (published)