码迷,mamicode.com
首页 >  
搜索关键字:election    ( 85个结果
POJ - 2528 Mayor's posters (线段树+离散化)
Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral posters at all places at their whim. The city counci...
分类:其他好文   时间:2014-08-03 15:17:15    阅读次数:301
南阳理工 题目9:posters(离散化+线段树)
posters时间限制:1000ms | 内存限制:65535KB难度:6描述The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been pl...
分类:其他好文   时间:2014-07-28 23:46:54    阅读次数:451
Pku3664
/* D - Election Time Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Description The cows are having their first election after overthrowing the tyrannical ...
分类:其他好文   时间:2014-07-12 23:46:56    阅读次数:262
POJ-2528-Mayor's posters(线段树)
Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral posters at all places at their whim. The city counci...
分类:其他好文   时间:2014-07-06 10:53:28    阅读次数:185
POJ 3664 Election Time 题解
这道题网上很多人都会说容易,水题之类的话,不过我看了下说这样的话的人的程序,可以说他们的程序都不及格! 为什么呢?因为他们的程序都是使用简单的二次排序水过(大概你能搜索到的多是这样的程序),那样自然可以说不及格了。 因为本题真正的目的是求前k个最大数的问题,这就需要活用快速排序。 求前k个最大数的思路: 1 选取一个数位轴,然后把大于这个数的数放到数列前面,小于这个数的数放到数列后面 2 如果前面的数的数量大于k,那么可以去掉后面的数,递归在前面的数查找前k个最大数 3 如果前面的数的数量小于k,那么截去前...
分类:其他好文   时间:2014-06-15 18:04:07    阅读次数:181
85条   上一页 1 ... 7 8 9
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!