###
NamespacesDocker利用命名域来提供隔离的集装箱.会提供很多命名域给集装箱.* The pid namespace:Used for process
numbering (PID: Process ID)* The net namespace:Used for managing ...
分类:
其他好文 时间:
2014-05-26 15:50:55
阅读次数:
401
1 /** 2 * 把返回的数据集转换成Tree 3 * @param array $list
要转换的数据集 4 * @param string $pid parent标记字段 5 * @param string $level level标记字段 6 *
@return array 7...
分类:
其他好文 时间:
2014-05-26 14:01:51
阅读次数:
225
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2680题目意思:实质就是给定一个多源点到单一终点的最短路。
卑鄙题~~~有向图。初始化map时 千万不要写成 map[i][j] = map[j][i] = X。 1 #include 2 #inc...
分类:
其他好文 时间:
2014-05-26 12:45:46
阅读次数:
255
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1228
1、 没读清题就交-----a==0 && b==0 我以为zero zero借书
2、范围估计,100+100。。。。
3、代码设计,,,,
#include
#include
using namespace std;
#define SIZE 111
#define ll long...
分类:
其他好文 时间:
2014-05-22 18:46:45
阅读次数:
513
题目:http://poj.org/problem?id=1226
http://acm.hdu.edu.cn/showproblem.php?pid=1238
其实用hash+lcp可能也可以,甚至可能写起来更快,不过我没试,我最近在练习后缀数组,所以来练手
后缀数组的典型用法之一----------------后缀数组+lcp+二分
思路:1、首先将所有的字符串每读...
分类:
其他好文 时间:
2014-05-22 17:14:08
阅读次数:
289
http://acm.hdu.edu.cn/showproblem.php?pid=4009最小树形图。题意是有n个地方需要供水,每个地方都可以选择是自己挖井,还是从别的地方引水,根据方法不同和每个地方的坐标不同,花费也不同,现在给出每个地方的坐标,花费的计算方法,以及每个地方可以给哪些地方供水(即...
分类:
其他好文 时间:
2014-05-21 19:56:11
阅读次数:
289
http://acm.hdu.edu.cn/showproblem.php?pid=3746kmp的Nxet数组求字符串循环节例题lenB%(lenB-Next[lenB])==0则其有周期lenB/(lenB-Next[lenB]),其中最小循环节长度是lenB-Next[lenB]#includ...
分类:
其他好文 时间:
2014-05-21 19:36:29
阅读次数:
185
http://acm.hdu.edu.cn/showproblem.php?pid=4393题意:有n个人,i-th人第一秒速度为Fi/s,之后Si/s。每一秒末,跑在最前面的人消失,如果有多个人同时在最前面,id最小的人消失。输出消失顺序。题解:因为Si最多只有100个,所以对Si进行操作。采用优...
分类:
其他好文 时间:
2014-05-21 19:23:37
阅读次数:
270
http://acm.hdu.edu.cn/showproblem.php?pid=1358求某个前缀的周期,用Next求循环节的题目#include
#include #include #include using namespace std ;char B[1000005] ;int Next[...
分类:
其他好文 时间:
2014-05-21 19:23:01
阅读次数:
241
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2112题目意思:又是求最短路的,不过结合埋字符串来考查。
受之前1004 Let the Balloon Rise 学到用map 的解法做之后,有点蠢蠢欲动,当时见到要用字典树做有点吓坏了(之前看过下,....
分类:
其他好文 时间:
2014-05-21 18:51:53
阅读次数:
325