API Response (JSON)
{
"problem": {
"name": "B. Minimum Ternary String",
"description": {
"content": "You are given a ternary string (it is a string which consists only of characters '_0_', '_1_' and '_2_'). You can swap any two adjacent (consecutive) characters '_0_' and '_1_' (i.e. replace \"_01_\" w",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF1009B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a ternary string (it is a string which consists only of characters '_0_', '_1_' and '_2_').\n\nYou can swap any two adjacent (consecutive) characters '_0_' and '_1_' (i.e. replace \"_01_\" w...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给你一个三元字符串(即仅由字符 '_0_'、'_1_' 和 '_2_' 组成的字符串)。\n\n你可以交换任意两个相邻(连续)的字符 '_0_' 和 '_1_'(即用 \"_10_\" 替换 \"_01_\",或反之亦然),或者交换任意两个相邻(连续)的字符 '_1_' 和 '_2_'(即用 \"_21_\" 替换 \"_12_\",或反之亦然)。\n\n例如,对于字符串 \"_010210_\",我们可以执行以下操作:\n\n...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ s \\in \\{0,1,2\\}^* $ be a ternary string.\n\n**Constraints** \nAllowed operations: \n- Swap adjacent $ 0 $ and $ 1 $: $ 01 \\leftrightarrow 10 $ \n- Swap adjacent $ 1 $ and $ 2 $: ...",
"is_translate": false,
"language": "Formal"
}
]
}