spoj MSTS kruskal +生成樹
spoj MSTS kruskal +生成樹...
spoj MSTS kruskal +生成樹...
spoj CCOST . Usage of a 2 dimensional fenwick tree.Querying (log(n)^2) a 2 dimensional matrix for sub sum and updating a cell in O(logn)...
spoj k-query. Given lots of offline queries and updates, reoder the queries and updates so that they maybe efficiently preprocessed....
spoj dtree. Count the number of distinct elements in a given range. Usage is done using fenwick trees. Offline algorithm for queries...
spoj705 后綴數組 里面有后綴數組的模板 在spoj上提交正確...