API Response (JSON)
{
"problem": {
"name": "C. 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": "CF998C"
},
"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": "你有一个由零和一组成的字符串 $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你需要花费最少多少枚硬币,才能...",
"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 reverse and invert operations, respectively. \nLet $ a = (a_1, a...",
"is_translate": false,
"language": "Formal"
}
]
}