![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM__高级数据结构
Spectacules
每一段代码都是艺术品
展开
-
HDU 3874 Necklace(树状数组 && 离线操作)
Necklace Problem Description Mery has a beautiful necklace. The necklace is made up of N magic balls. Each ball has a beautiful value. The balls with the same beautiful value look the same, so if原创 2015-10-05 16:38:54 · 513 阅读 · 0 评论 -
HDU 1166 敌兵布阵(树状数组)
敌兵布阵 Problem Description C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不原创 2015-10-04 10:26:53 · 387 阅读 · 0 评论 -
HDU 3792 Twin Prime Conjecture(素数筛法 + 树状数组)
Twin Prime Conjecture Problem Description If we define dn as: dn = pn+1-pn, where pi is the i-th prime. It is easy to see that d1 = 1 and dn=even for n>1. Twin Prime Conjecture states that "There原创 2015-10-04 20:54:46 · 543 阅读 · 0 评论 -
HDU 1950 Bridging signals(树状数组)
Bridging signals Problem Description 'Oh no, they've done it again', cries the chief designer at the Waferland chip factory. Once more the routing designers have screwed up completely, making the原创 2015-10-06 21:47:01 · 434 阅读 · 0 评论 -
POJ 2418 Hardwood Species(二叉搜索树BST)
Hardwood Species Description Hardwoods are the botanical group of trees that have broad leaves, produce a fruit or nut, and generally go dormant in the winter. America's temperate climates prod原创 2015-10-12 18:04:53 · 470 阅读 · 0 评论