查了GOOGLE一下,这种办法可以解决我的存储过程是这样的:CREATE procedure cal_month_dep_fast @begdt datetime,@endt datetime as。。。。。。。。。select dep_no ,prod_no ,batch_no ,prod_add...
分类:
数据库 时间:
2015-04-09 19:09:56
阅读次数:
453
const int MAXN = 10010;
const int MAXM = 10010;
struct N
{
int v,w,next;
}edge[MAXM*2];
int Top;
int head[MAXN];
int MAXSIZE;
int dep[MAXN];
int seq[MAXN*2];
int R[MAXN];...
分类:
其他好文 时间:
2015-04-08 18:10:41
阅读次数:
116
ret2libc的基本原理 ret2libc是绕过DEP的一个思路,顾名思义是利用系统中已经存在的系统函数来构造对DEP的攻击,思路大概有三种,通过ZwSetInformationProcess函数将DEP关闭、通过VirtualProtect函数将shellcode所在内存设为可执行、通过Virt...
分类:
其他好文 时间:
2015-04-05 23:23:08
阅读次数:
224
#include#includeusing namespace std;#define INF 2147483647#define N 20001#define lson rt>1]=v[i]; dw[v[i]]=bw[i]; fa[v[i]]=U; dep[v[i]]=dep[U...
分类:
其他好文 时间:
2015-03-19 18:18:09
阅读次数:
158
引用题解:http://blog.csdn.net/popoqqq/article/details/38823457题目大意:给出一个n个节点的有根树(编号为0到n-1,根节点为0)。一个点的深度定义为这个节点到根的距离+1。设dep[i]表示点i的深度,LCA(i,j)表示i与j的最近公共祖先。有...
分类:
其他好文 时间:
2015-03-18 07:46:44
阅读次数:
149
原文:http://gjhappyyy.iteye.com/blog/1422515在UML类图中,常见的有以下几种关系:泛化(Generalization),实现(Realization),关联(Association),聚合(Aggregation),组合(Composition),依赖(Dep...
分类:
其他好文 时间:
2015-03-15 23:33:34
阅读次数:
347
removenode_modules$ rm -rf node_modules/run$ npm cache clean详见这里:http://stackoverflow.com/questions/20764881/why-does-npm-install-say-i-have-unmet-dep...
分类:
其他好文 时间:
2015-03-15 02:02:16
阅读次数:
274
求树的最长链,BFS和DFS都可以,时间复杂度O(n)#include#includeint tot,vt[20005],nxt[20005],a[20005];bool vis[10005];int n,i,j,xx,yy,s,ma,r;void search(int x,int dep){ .....
分类:
其他好文 时间:
2015-03-14 10:58:28
阅读次数:
207
题意:n个节点的树,每个点有一种颜色。现有m种询问,每次询问x y a b表示x到y的路径上颜色的种数且a颜色看成b颜色。(nusing namespace std;const int N=50005;int ihead[N], cnt, id[N], blo[N], f[N][16], dep[N...
分类:
移动开发 时间:
2015-03-11 21:35:42
阅读次数:
205
题意:求一棵仙人掌图的直径。题解:戳ydchttp://ydcydcy1.blog.163.com/blog/static/21608904020131493113160/代码:int n,m,tot,head[maxn],dep[maxn],a[maxn],fa[maxn],q[maxn],low...
分类:
其他好文 时间:
2015-03-11 19:34:28
阅读次数:
109