6 abcdcf 4 2 1 3 2 2 6 1 5 e 2 2 6
Yes No Yes * In the $1$\-st query, `abccdf` is the string $T$ obtained by sorting the characters of $S$ in ascending order. The string `abc`, consisting of the $1$\-st through $3$\-rd characters of $S$, is a substring of $T$, so `Yes` should be printed. * In the $2$\-nd query, `abccdf` is the string $T$ obtained by sorting the characters of $S$ in ascending order. The string `bcdcf`, consisting of the $2$\-nd through $6$\-th characters of $S$, is not a substring of $T$, so `No` should be printed. * The $3$\-rd query sets the $5$\-th character of $S$ to `e`, making $S$ `abcdef`. * In the $4$\-th query, `abcdef` is the string $T$ obtained by sorting the characters of $S$ in ascending order. The string `bcdef`, consisting of the $2$\-nd through $6$\-th characters of $S$, is a substring of $T$, so `Yes` should be printed.
{
"problem": {
"name": "Substring of Sorted String",
"description": {
"content": "You are given a string $S$ of length $N$ consisting of lowercase English letters, and $Q$ queries. Process the queries in order. Each query is of one of the following two kinds: * `1 x c` : replace",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc285_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a string $S$ of length $N$ consisting of lowercase English letters, and $Q$ queries. Process the queries in order.\nEach query is of one of the following two kinds:\n\n* `1 x c` : replace...",
"is_translate": false,
"language": "English"
}
]
}