#include #define MAX 100001 int john,cow; int queue[MAX]; int vis[MAX]; int ans; void bfs() { int tail,head; tail=head=0; int start=john; queue[tail++... ...
分类:
其他好文 时间:
2017-04-28 16:10:10
阅读次数:
204
procyon反编译 DirtyCow webshell 内网渗透 ...
分类:
其他好文 时间:
2017-04-27 12:43:41
阅读次数:
126
POJ 1985 Cow Marathon(树的直径) http://poj.org/problem?id=1985 题意: 有一个树结构, 给你树的全部边(u,v,cost), 表示u和v两点间有一条距离为cost的边. 然后问你该树上最远的两个点的距离是多少?(即树的直径) 分析: 对于树的直径 ...
分类:
其他好文 时间:
2017-04-27 10:24:11
阅读次数:
172
转自:使用FD_CLOEXEC实现close-on-exec,关闭子进程无用文件描述符 我们经常会碰到需要fork子进程的情况,而且子进程很可能会继续exec新的程序。这就不得不提到子进程中无用文件描述符的问题! fork函数的使用本不是这里讨论的话题,但必须提一下的是:子进程以写时复制(COW,C ...
分类:
其他好文 时间:
2017-04-23 20:10:20
阅读次数:
125
Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,00 ...
分类:
其他好文 时间:
2017-04-23 18:15:02
阅读次数:
135
题目描述 The N (2 <= N <= 10,000) cows are so excited: it's prom night! They are dressed in their finest gowns, complete with corsages and new shoes. They ...
分类:
其他好文 时间:
2017-04-23 15:46:01
阅读次数:
176
Catch That Cow Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14553 Accepted Submission(s): 4422 ...
分类:
其他好文 时间:
2017-04-22 22:40:18
阅读次数:
192
http://poj.org/problem?id=3615 floyd 最短路径的变形 dist[i][j]变化为 : i j之间的最大边 那么输入的时候可以直接把dist[i][j] 当作i j 之间的边进行输入 转移方程 dist[i][j] = max(dist[i][j], min(dis ...
分类:
其他好文 时间:
2017-04-21 21:40:01
阅读次数:
150