API Response (JSON)
{
"problem": {
"name": "B. Binary String Constructing",
"description": {
"content": "You are given three integers $a$, $b$ and $x$. Your task is to construct a binary string $s$ of length $n = a + b$ such that there are exactly $a$ zeroes, exactly $b$ ones and exactly $x$ indices $i$ ",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF1003B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given three integers $a$, $b$ and $x$. Your task is to construct a binary string $s$ of length $n = a + b$ such that there are exactly $a$ zeroes, exactly $b$ ones and exactly $x$ indices $i$ ...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给你三个整数 $a$、$b$ 和 $x$。你的任务是构造一个长度为 $n = a + b$ 的二进制字符串 $s$,使得其中恰好有 $a$ 个零、恰好 $b$ 个一,并且恰好有 $x$ 个索引 $i$(其中 $1 lt.eq i < n$)满足 $s_i != s_{i + 1}$。题目保证答案一定存在。\n\n例如,对于字符串 \"_01010_\",有四个索引 $i$ 满足 $1 lt.eq i < ...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ a, b, x \\in \\mathbb{Z}^+ $ such that $ 1 \\leq a, b \\leq 100 $ and $ 1 \\leq x < a + b $. \nLet $ n = a + b $. \nLet $ s = s_1 s_2 \\dots s_n $ be a binary string of length $ n $,...",
"is_translate": false,
"language": "Formal"
}
]
}