摘要:        
#include using namespace std; #define sd 1000010 int a1,b1,j; int kmp[sd]; char a[sd],b[sd]; int main() { cin>>a+1; cin>>b+1; a1=strlen(a+1); b1=strlen(b+1); for(int i=2;i<=b1;i...    阅读全文
posted @ 2019-10-15 11:05
'Jack'
阅读(96)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include #include using namespace std; struct yyy{ int t, nex; }e[2*500001]; int depth[500001],fa[500001][22],lg[500001],head[500001]; int tot; void add(int x,int y) //邻接表存树 { e[++tot...    阅读全文
posted @ 2019-10-15 10:57
'Jack'
阅读(112)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include using namespace std; int n; string s; struct jhh { int fail; int vis[26]; int end; }a[100001]; int cnt=0; void build(string s) { int l=s.length(); int now=0; for(int i=0;iq; ...    阅读全文
posted @ 2019-10-15 10:56
'Jack'
阅读(141)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include<iostream> #include<cstdio> #define MAXN 1000001 #define ll long long using namespace std; unsigned ll n,m,a[MAXN],ans[MAXN<<2],tag[MAXN<<2]; inline ll ls(ll x) { return x<<1; } inline ll rs(l    阅读全文
posted @ 2019-10-15 10:55
'Jack'
阅读(107)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include<bits/stdc++.h> using namespace std; const int maxn=11000002; char a[maxn<<1]; int p[maxn<<1]; int cnt=1,rd,mid,ans; void read() { char c=getchar(); a[0]='~'; a[1]='|'; while(c>='a'&&c<='z') {    阅读全文
posted @ 2019-10-15 10:54
'Jack'
阅读(100)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include<bits/stdc++.h> using namespace std; const int maxn=11000002; char a[maxn<<1]; int p[maxn<<1]; int cnt=1,rd,mid,ans; void read() { char c=getchar(); a[0]='~'; a[1]='|'; while(c>='a'&&c<='z') {    阅读全文
posted @ 2019-10-15 10:52
'Jack'
阅读(95)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include<bits/stdc++.h> using namespace std; int pow_mod(int a, int n, int m) { long long ans = 1; while(n){ if(n&1){ ans = (ans * a) % m; } a = (a *     阅读全文
posted @ 2019-10-15 10:49
'Jack'
阅读(73)
评论(0)
推荐(0)
        

浙公网安备 33010602011771号