API Response (JSON)
{
"problem": {
"name": "A. Convert to Ones",
"description": {
"content": "You've got a string $a_1, a_2, \\dots, a_n$, consisting of zeros and ones. Let's call a sequence of consecutive elements $a_i, a_{i + 1}, \\ldots, a_j$ ($1\\leq i\\leq j\\leq n$) a _substring_ of string $",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF997A"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You've got a string $a_1, a_2, \\dots, a_n$, consisting of zeros and ones.\n\nLet's call a sequence of consecutive elements $a_i, a_{i + 1}, \\ldots, a_j$ ($1\\leq i\\leq j\\leq n$) a _substring_ of string $...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "你有一个由 0 和 1 组成的字符串 $a_1, a_2, dots.h, a_n$。\n\n我们称连续元素序列 $a_i, a_(i + 1), dots.h, a_j$($1 lt.eq i lt.eq j lt.eq n$)为字符串 $a$ 的一个 _子串_。\n\n你可以任意次数地应用以下操作:\n\n你可以按任意顺序应用这些操作,允许对同一个子串多次应用操作。\n\n求获得一个仅由 1 组成...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ be the length of the binary string. \nLet $ x, y \\in \\mathbb{Z}_{\\geq 0} $ be the costs of the reverse and invert operations, respectively. \nLet $ a = (a_...",
"is_translate": false,
"language": "Formal"
}
]
}