API Response (JSON)
{
"problem": {
"name": "C. Sum of Nestings",
"description": {
"content": "Recall that the bracket sequence is considered regular if it is possible to insert symbols '_+_' and '_1_' into it so that the result is a correct arithmetic expression. For example, a sequence \"_(()(",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF847C"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Recall that the bracket sequence is considered regular if it is possible to insert symbols '_+_' and '_1_' into it so that the result is a correct arithmetic expression. For example, a sequence \"_(()(...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "回想一下,括号序列被认为是规则的,如果可以在其中插入符号 '_+_' 和 '_1_',使得结果是一个正确的算术表达式。例如,序列 \"_(()())_\" 是规则的,因为我们可以通过插入符号 '_+_' 和 '_1_' 得到正确的算术表达式:\"_((1+1)+(1+1))_\"。以下序列也是规则的括号序列:\"_()()()_\"、\"_(())_\" 和 \"_()_\"。以下序列不是规则的括号序列:\"_)(_\"...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ be the number of opening brackets. \nLet $ k \\in \\mathbb{Z}_{\\geq 0} $ be the required total nesting sum. \n\nA **regular bracket sequence** of length $ 2n ...",
"is_translate": false,
"language": "Formal"
}
]
}