VIrtuoso

两把多兰剑加个布甲鞋

导航

2019年3月17日 #

后缀数组板子

摘要: poj1743 下标从0开始版本 c++ include include include include define M 20005 using namespace std; int x[M],y[M],sa[M],rk[M],c[M],h[M],s[M]; int n,i,l,r,mid,m,m 阅读全文

posted @ 2019-03-17 20:24 VIrtuoso 阅读(121) 评论(0) 推荐(0)

ac自动机板子

摘要: hdu2222 c++ include define ll long long define M 500005 using namespace std; int tr[M][30],T,n,i,fail[M],cnt[M],sz; char s[1000005]; void add(char s){ 阅读全文

posted @ 2019-03-17 20:19 VIrtuoso 阅读(82) 评论(0) 推荐(0)