6 3 5 6 4 2 3 1 5
18 For instance, $A = (4,1,5,6,2,3)$ satisfies the condition. On this $A$, the operation will proceed as follows. * The action for $k=0$ changes $A$ to $(1,4,5,6,2,3)$. * The action for $k=1$ changes $A$ to $(1,4,5,6,2,3)$. * The action for $k=2$ changes $A$ to $(1,4,2,5,6,3)$. * The action for $k=3$ changes $A$ to $(1,4,2,3,5,6)$. * The action for $k=4$ changes $A$ to $(6,4,2,3,1,5)$, which equals $B$.
6 3 5 6 5 4 3 2 1
0 No sequence $A$ satisfies the condition.
20 20 149 13 14 15 16 17 18 19 20 1 2 3 4 5 6 7 8 9 10 11 12
401576539 All permutations of the integers from $1$ through $20$ satisfy the condition.
{
"problem": {
"name": "Sliding Window Sort",
"description": {
"content": "You are given positive integers $N$, $M$, and $K$. Consider the following operation on a sequence of positive integers $A = (A_0, \\ldots, A_{N-1})$. * Do the following for $k=0, 1, \\ldots, K-1$ in ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc149_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given positive integers $N$, $M$, and $K$. Consider the following operation on a sequence of positive integers $A = (A_0, \\ldots, A_{N-1})$.\n\n* Do the following for $k=0, 1, \\ldots, K-1$ in ...",
"is_translate": false,
"language": "English"
}
]
}