#abc240h. [abc240_h]Sequence of Substrings

[abc240_h]Sequence of Substrings

给定一个长度为 nn0101 串,求最多可以选出多少互不相交的子串,满足这些子串按照原串中的顺序,字典序严格升序。