摘要: namespace SA{char s[N];int sa[N],t1[N],t2[N],num[N];int n;void buildsa(int m){ int *x=t1,*y=t2; for(int i=0;i<m;i++) num[i]=0; for(int i=0;i<n;i++) nu 阅读全文
posted @ 2017-10-08 19:54 star_eternal 阅读(122) 评论(0) 推荐(0) 编辑
摘要: namespace MincostMaxflow{ int head[N],arnum=1; struct Arc{int next,to,cap,cost;}arc[M]; void add(int from,int to,int cap,int cost){ arc[++arnum].next=head[from]; head[from... 阅读全文
posted @ 2017-10-08 09:17 star_eternal 阅读(166) 评论(0) 推荐(0) 编辑