Help needed in 1336A-Linova and Kingdom. Need a better explanation for the solution

Revision en1, by kazakhThunder, 2020-04-24 18:30:14

The editorial for the given problem is a tad bit too difficult to understand for me, and I suppose for many others. Thus, I am looking for simpler explanations to the solution. Any help would be greatly appreciated.

Tags codeforces round 635, #trees, #graph, #dfs

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English kazakhThunder 2020-04-24 18:40:25 86
en1 English kazakhThunder 2020-04-24 18:30:14 298 Initial revision (published)