A tree, there are n nodes, and each node v bug, w brain. I began to walk from the 1th, with m a soldier.
1 warrior can kill 20 bugs, if I destroy a nexus of all bug, I can get that brain of the nodes.
If you want to attack the current node, so you must attack its parent nexus (1th).
Whe... Algorithm C++