POJ3461 字符串双HASH

#include
#include
#include 
#define ull unsigned long long
using namespace std;
const ull B=1e8+5,C=1e8+7;
const int maxn=100001;    
char a[maxn],b[maxn*100];    
int ans;
int al,bl;
int find(){
    int i;
    al=strlen(a);
    bl=strlen(b);
    if(al>bl)return -1;   
    ull t=1,ah=0,bh=0,ah1=0,bh1=0;
    for(i=0;i

你可能感兴趣的:(图论)