算法之树状数组
cc_wood
这个作者很懒,什么都没留下…
展开
-
敌兵布阵 HDU 1166
题目链接:点我 C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。 中央情报局要原创 2017-07-20 11:40:10 · 207 阅读 · 0 评论 -
Stars POJ - 2352
题目链接:点我 Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are not h原创 2017-07-21 13:26:47 · 264 阅读 · 0 评论 -
Cows POJ - 2481
题目链接:点我 Farmer John's cows have discovered that the clover growing along the ridge of the hill (which we can think of as a one-dimensional number line) in his field is particularly good. Farmer原创 2017-07-21 13:35:47 · 214 阅读 · 0 评论 -
Necklace HDU - 3874
题目链接:点我 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 two or more balls have原创 2017-07-21 13:48:16 · 243 阅读 · 0 评论 -
Ultra-QuickSort POJ - 2299
题目链接:点我 In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence i原创 2017-07-21 13:54:25 · 225 阅读 · 0 评论