摘要: 1 #include 2 using namespace std; 3 #define key1 first 4 #define key2 second 5 const int size=2048,p1=131,p2=13331; 6 const int mod1=1e6+3,mod2=1e6+33;//两个大质数 双hash 7 int n,ans; 8 char tmp[s... 阅读全文
posted @ 2019-01-27 23:12 宇興 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 const int size=1000005,p=131; 4 typedef unsigned long long ULL;//自然溢出 5 ULL f[size],key[size]; 6 int n,T,l1,r1,l2,r2; 7 char tmp[size]; 8 int main(){ 9 ... 阅读全文
posted @ 2019-01-27 23:09 宇興 阅读(198) 评论(0) 推荐(1) 编辑