Can someone give me a hint on this problem: http://www.spoj.com/problems/PT07A/. I cannot figure out how to calculate the SG numbers.
SPOJ — Play with a tree
Can someone give me a hint on this problem: http://www.spoj.com/problems/PT07A/. I cannot figure out how to calculate the SG numbers.