版本比较
「2017 山东一轮集训 Day6」子序列
正文
增加 5 行删除 5 行
41 行未改动4243444546464748495079 行未改动13013113213313413413513613713846 行未改动18518618718818918919019119219348 行未改动242243244245246246247248249250160 行未改动全部展开41141241341441541541641741841969 行未改动41 行未改动然后你就有 $40$ 分了!
```cpp/*
*/#include <bits/stdc++.h>using namespace std;
79 行未改动因为常熟比较小,然后你就可以过了,不过我们并不满足(
```cpp/*
*/#include <bits/stdc++.h>using namespace std;
46 行未改动 pre[0].init(); suf[0].init();
for (int i = 1, c; i <= n; ++i) { c = s[i] - 'a';
for (int j = 0; j < 10; ++j) { suf[i].a[c][j] = 1; pre[i].a[c][j] = mod - 1; }48 行未改动现在你可以几乎可以在 $0.1s$ 之内通过任何数据(
```cpp/*
*/#include <bits/stdc++.h>using namespace std;
160 行未改动全部展开虽然实测这个只比 Sol2 快了 $2.5$ 倍左右(
```/*
*/#include <bits/stdc++.h>using namespace std;
69 行未改动