码迷,mamicode.com
首页 >  
搜索关键字:shaolin    ( 19个结果
hdu 4585 Shaolin(STL map)
Problem DescriptionShaolin temple is very famous for its Kongfu monks.A lot of young men go to Shaolin temple every year, trying to be a monk there. T...
分类:其他好文   时间:2015-08-14 21:16:40    阅读次数:159
hdu 4585 map **
题意:Shaolin temple is very famous for its Kongfu monks.A lot of young men go to Shaolin temple every year, trying to be a monk there. The master of Sha...
分类:其他好文   时间:2015-07-06 17:41:02    阅读次数:123
HDU 4585 Shaolin (map)
题意:思路:#include#include#include#include#include#include#include#include#include#includeusing namespace std;map a;const int INF=1000000000;int main(){ ....
分类:其他好文   时间:2015-06-04 21:02:49    阅读次数:110
hdu 4585 Shaolin
原题链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=46093 1 #include 2 #include 3 #include 4 #include 5 const int Max_N = 101000; 6...
分类:其他好文   时间:2015-05-01 18:34:12    阅读次数:165
HDU 4585 ShaoLin 基础Treap
这题其实就是一个在二叉搜索树里面找前驱和后继的题,以前好像用线段树+离散化搞过,弄得比较挫,学会AVL了之后就是方便。简单说一下怎么找前驱和后继,前驱的话,如果当前节点有左子树,那么前驱就是左子树中的最大节点,否则往上找第一个是他父亲节点的右儿子的节点,后继和前驱差不多,反过来就行。因为我这里没有存...
分类:其他好文   时间:2015-02-06 12:54:20    阅读次数:168
[HDU 4585] Shaolin (map应用)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4585题目大意:不停的插入数字,问你跟他相距近的ID号。如果有两个距离相近的话选择小的那个。用map,先用upper_bound找到大的,然后迭代器减1,就能够找到相近的两个。然后。。用链表不知道为什么有...
分类:其他好文   时间:2014-11-23 12:59:06    阅读次数:129
HDU 4585 Shaolin(STL map)
Shaolin Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Submit Status Practice HDU 4585 Description Shaolin temple is very famous for its Kongfu monks.A...
分类:其他好文   时间:2014-10-04 01:09:25    阅读次数:391
HDU4585:Shaolin(map)
Problem Description Shaolin temple is very famous for its Kongfu monks.A lot of young men go to Shaolin temple every year, trying to be a monk there. The master of Shaolin evaluates a young man mai...
分类:其他好文   时间:2014-07-29 12:59:17    阅读次数:322
hdu 4585 Shaolin两种方法(暴力和STL)
暴力和STL两种方法...
分类:其他好文   时间:2014-06-25 19:17:43    阅读次数:151
19条   上一页 1 2
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!