
哈希
Napoleon2004
这个作者很懒,什么都没留下…
展开
-
HDU 1696
#include<iostream>#include<utility>#include<cstring>#include<cstdio>using namespace std;typedef unsigned long long ull;const int b=101,M=1e6+9;char s1[M],s2[M];ull s,su...原创 2018-07-08 11:15:33 · 233 阅读 · 0 评论 -
POJ 2406
#include<iostream>#include<cstdio>#include<cstring>using namespace std;typedef unsigned long long ull;const int b=101,N=1e6+10;char s[N];ull sum[N],power[N];int main(){ int ...原创 2018-07-08 11:16:28 · 198 阅读 · 0 评论 -
POJ 2752
#include<cstdio>#include<cstring>using namespace std;const int b=101,c=103,M=400010;typedef unsigned long long ull;ull sum1[M],sum2[M],power1[M],power2[M];char s[M];int main(){ int...原创 2018-07-08 11:17:26 · 173 阅读 · 0 评论 -
BZOJ 3916
#include<cstdio>#include<cstring>#include<iostream>using namespace std;const int b=101,c=103,M=2000010;typedef unsigned long long ull;ull sum1[M],sum2[M],power1[M],power2[M];c...原创 2018-07-08 11:21:18 · 291 阅读 · 0 评论 -
BZOJ 2795
#include<bits/stdc++.h>using namespace std;const int b=233,c=10007,M=500010;typedef unsigned long long ull;char s[M];ull t,sum1[M],sum2[M],power1[M],power2[M];ull get_hush1(int x,int y){ ...原创 2018-07-08 11:22:27 · 274 阅读 · 0 评论 -
BZOJ 2081
#include<bits/stdc++.h>using namespace std;const int b=49999,M=200010;typedef unsigned long long ull;map<ull,bool>mp;int a[M],anss[M];ull sum1[M],sum2[M],power[M];ull get_hush1(int ...原创 2018-07-08 11:23:23 · 248 阅读 · 0 评论 -
BZOJ 2084
#include<bits/stdc++.h>using namespace std;char s[500010];int main(){ int n,i,l,r,ans=0; scanf("%d\n%s",&n,s+1); for(i=1;i<n;i++){ l=i;r=i+1; while(l>=1&&r<=n&...原创 2018-07-08 11:24:23 · 229 阅读 · 0 评论 -
POJ 2752
#include<cstdio>#include<cstring>using namespace std;const int b=101,c=103,M=400010;typedef unsigned long long ull;ull sum1[M],sum2[M],power1[M],power2[M];char s[M];int main(){ int...原创 2018-07-01 21:50:15 · 320 阅读 · 0 评论