树形dp____Magic boy Bi Luo with his excited tree( hdu 5834 2016ccpc网络赛)
ProblemDescriptionBiLuoisamagicboy,healsohasamigictree,thetreehasNnodes,ineachnode,thereisatreasure,it'svalueisV[i],andforeachedge,thereisacostC[i],whichmeanseverytimeyoupasstheedgei,youneedtopayC[i].