随笔分类 -  Algorithm-模板库

摘要:#include <iostream> #include <cstdio> using namespace std; const int N=1e6+1; struct Node { int len,link,sz;//len是right集的最大值,link是parent树上的父亲,sz是...后缀 阅读全文
posted @ 2018-08-15 21:06 Vagari 阅读(234) 评论(0) 推荐(0) 编辑
摘要://有多少项N取多至少8~10倍 #include <algorithm> #include <cmath> #include <complex> #include <cstdlib> using namespace std; typedef complex<double> cn; const in 阅读全文
posted @ 2018-08-05 15:21 Vagari 阅读(155) 评论(0) 推荐(0) 编辑
摘要:#include <queue> #include <memory.h> using namespace std; const int inf=2147483647; struct Edge { int u,v,c,nx; }g[M]; int cnt=1,list[N]; int d[N],cur 阅读全文
posted @ 2018-08-05 14:55 Vagari 阅读(99) 评论(0) 推荐(0) 编辑
摘要:#include <queue> #include <memory.h> using namespace std; struct Edge { int u,v,w,nx; }g[M]; int cnt,list[N]; int d[N]; bool b[N]; void Spfa(int v0) { 阅读全文
posted @ 2018-08-05 14:44 Vagari 阅读(91) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示