2020ICPC南京 M.Monster Hunter
题目链接题目描述There is a rooted tree with nnn vertices and the root vertex is 111. In each vertex, there is a monster. The hit points of the monster in the iii-th vertex is hpihp_ihpi .Kotori would like to kill all the monsters. The monster in the iii-th