7 0101010
3 For $K = 3$, one sequence satisfying the conditition is $(L_1, R_1) = (1, 1), (L_2, R_2) = (3, 5), (L_3, R_3) = (6, 7)$. Indeed, $s_1 = 0$ is strictly lexicographically smaller than $s_3s_4s_5 = 010$, and $s_3s_4s_5 = 010$ is strictly lexicographically smaller than $s_6s_7 = 10$. For $K \geq 4$, there is no sequence $\big((L_1, R_1), (L_2, R_2), \ldots, (L_K, R_K)\big)$ satisfying the condition.
30 000011001110101001011110001001
9
{
"problem": {
"name": "Ex - Sequence of Substrings",
"description": {
"content": "You are given a string $S = s_1 s_2 \\ldots s_N$ of length $N$ consisting of $0$'s and $1$'s. Find the maximum integer $K$ such that there is a sequence of $K$ pairs of integers $\\big((L_1, R_1), (L_2,",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 5000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc240_h"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a string $S = s_1 s_2 \\ldots s_N$ of length $N$ consisting of $0$'s and $1$'s.\nFind the maximum integer $K$ such that there is a sequence of $K$ pairs of integers $\\big((L_1, R_1), (L_2,...",
"is_translate": false,
"language": "English"
}
]
}