正文
增加 1 行删除 1 行
245 行未改动全部展开246247248249250251252253254631 行未改动全部展开245 行未改动全部展开void ph() {sph[0] = s[0] - 'a' + 1;for (ll i = 1; i < s.size(); i++) {sph[i] = (sph[i - 1] * hp + (s[i] - 'a' + 1)) % hmod;}}ll gh(ll l, ll r) {631 行未改动全部展开245 行未改动全部展开246247248249250251252253254631 行未改动全部展开245 行未改动全部展开void ph() {sph[0] = s[0] - 'a' + 1;for (ll i = 1; i < s.size(); i++) {sph[i] = (sph[i - 1] * hp + (s[i] - 'a' + 1)) % hmod;}}ll gh(ll l, ll r) {631 行未改动全部展开