![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树状数组
XinxiZon
这个作者很懒,什么都没留下…
展开
-
Disharmony Trees HDU - 3015(树状数组+离散)
One day Sophia finds a very big square. There are n trees in the square. They are all so tall. Sophia is very interesting in them.She finds that trees maybe disharmony and the Disharmony Value b...原创 2019-06-05 20:26:45 · 143 阅读 · 0 评论 -
树状数组讲解
转载一位大牛的树状数组讲解,讲的非常通俗、仔细:https://blog.csdn.net/bestsort/article/details/80796531原创 2019-05-28 20:44:44 · 115 阅读 · 0 评论 -
树状数组理解
C[i]代表 子树的叶子结点的权值之和如图可以知道C[1]=A[1];C[2]=A[1]+A[2];C[3]=A[3];C[4]=A[1]+A[2]+A[3]+A[4];C[5]=A[5];C[6]=A[5]+A[6];C[7]=A[7];C[8]=A[1]+A[2]+A[3]+A[4]+A[5]+A[6]+A[7]+A[8];再将其转化为二进制看一下:...原创 2019-05-28 21:19:38 · 104 阅读 · 0 评论 -
KiKi's K-Number HDU - 2852 (树状数组+二分)
For the k-th number, we all should be very familiar with it. Of course,to kiki it is also simple. Now Kiki meets a very similar problem, kiki wants to design a container, the container is to support t...原创 2019-06-06 20:25:37 · 131 阅读 · 0 评论