11 4 mississippi 3 9 4 10 4 6 7 7
2
2
0
0
The answers to the four queries are as follows.
* For the first query, $S_3S_4\ldots S_9 = $ `ssissip` has two places where the same lowercase English letter occurs twice in a row: $S_3S_4 = $ `ss` and $S_6S_7 = $ `ss`.
* For the second query, $S_4S_5\ldots S_{10} = $ `sissipp` has two places where the same lowercase English letter occurs twice in a row: $S_6S_7 = $ `ss` and $S_9S_{10} = $ `pp`.
* For the third query, $S_4S_5S_6 = $ `sis` has zero places where the same lowercase English letter occurs twice in a row.
* For the fourth query, $S_7 = $ `s` has zero places where the same lowercase English letter occurs twice in a row.5 1 aaaaa 1 5
4 $S_1S_2\ldots S_5 = $ `aaaaa` has four places where the same lowercase English letter occurs twice in a row: $S_1S_2 = $ `aa`, $S_2S_3 = $ `aa`, $S_3S_4 = $ `aa`, and $S_4S_5 = $ `aa`.
{
"problem": {
"name": "Consecutive",
"description": {
"content": "You are given a string $S = S_1S_2\\ldots S_N$ of length $N$ consisting of lowercase English letters. Additionally, you are given $Q$ queries about the string $S$. For $i = 1, 2, \\ldots, Q$, the $i$\\-t",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc328_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a string $S = S_1S_2\\ldots S_N$ of length $N$ consisting of lowercase English letters.\nAdditionally, you are given $Q$ queries about the string $S$. For $i = 1, 2, \\ldots, Q$, the $i$\\-t...",
"is_translate": false,
"language": "English"
}
]
}