2024-07-16D. The Omnipotent Monster KillerD.TheOmnipotentMonsterKillerYou,themonsterkiller,wanttokillagroupofmonsters.Themonstersareonatreewith$n$vertices.Onvertexwithnumber$i$($1\lei\len$),thereisamonsterwith$a_i$attackpoints.Youwanttobattlewithmon