API Response (JSON)
{
"problem": {
"name": "C. Swap Adjacent Elements",
"description": {
"content": "You have an array _a_ consisting of _n_ integers. Each integer from 1 to _n_ appears exactly once in this array. For some indices _i_ (1 ≤ _i_ ≤ _n_ - 1) it is possible to swap _i_\\-th element with (",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF920C"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You have an array _a_ consisting of _n_ integers. Each integer from 1 to _n_ appears exactly once in this array.\n\nFor some indices _i_ (1 ≤ _i_ ≤ _n_ - 1) it is possible to swap _i_\\-th element with (...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "你有一个包含 $n$ 个整数的数组 $[a]$。数组中的每个整数从 $1$ 到 $n$ 恰好出现一次。\n\n对于某些索引 $i$($1 ≤ i ≤ n - 1$),你可以交换第 $i$ 个元素与第 $(i + 1)$ 个元素;而对于其他索引,这种交换是不允许的。你可以执行任意次数的交换操作,且顺序任意。对于非禁止的位置,你可以任意多次交换第 $i$ 个元素与第 $(i + 1)$ 个元素。\n\n你能否...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z} $ be the length of the array. \nLet $ A = (a_1, a_2, \\dots, a_n) $ be a permutation of $ \\{1, 2, \\dots, n\\} $. \nLet $ S \\in \\{0,1\\}^{n-1} $ be a binary string...",
"is_translate": false,
"language": "Formal"
}
]
}