2016中国大学生程序设计竞赛 - 网络选拔赛 1003 Magic boy Bi Luo with his excited tree hdu5834
ProblemDescriptionBiLuoisamagicboy,healsohasamigictree,thetreehasNnodes,ineachnode,thereisatreasure,it'svalueisV[i],andforeachedge,thereisacostC[i],whichmeanseverytimeyoupasstheedgei,youneedtopayC[i].