题目描述:给定一个长度为 n 仅由小写字母构成的字符串 S,再给定 q组查询,每次查询给定 4 个整数 l1,r1,l2,r2 你需要输出 Sl1∼r1 与 Sl2∼r2是否相同。 题目链接:http://47.121.118.174/p/80 #include<bits/stdc++.h> using namespace std; typedef long long ll; // N: 字符串最大长度, B: 进制数(通常选131或13331), mod: 大质数(用于防溢出和冲突) const int N=2e5+10, B=131, mod=998244353; ll ...