【SPOJ】Count on a Tree Ⅱ (COT2)
Foreword既然今天把莫队算法给复习了,又要准备AC糖果公园,那么就把树上莫队也给再写一遍先吧……OverviewYou are given a tree with N nodes. The tree nodes are numbered from 1 to N. Each node has an integer weight.We will ask you to perfrom the fol
原创
2016-01-23 21:09:42 ·
477 阅读 ·
0 评论