A nice problem on tree

Revision en1, by Yellow.Flash, 2016-10-13 17:36:48

https://www.hackerrank.com/contests/101hack41/challenges/the-forest-game

Can someone explain the idea behind this problem?
Editorial is not much clear,lacks proof.
Thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Yellow.Flash 2016-10-13 17:36:48 207 Initial revision (published)