API Response (JSON)
{
"problem": {
"name": "B. Balanced Substring",
"description": {
"content": "You are given a string _s_ consisting only of characters _0_ and _1_. A substring \\[_l_, _r_\\] of _s_ is a string _s__l__s__l_ + 1_s__l_ + 2... _s__r_, and its length equals to _r_ - _l_ + 1. A substr",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF873B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a string _s_ consisting only of characters _0_ and _1_. A substring \\[_l_, _r_\\] of _s_ is a string _s__l__s__l_ + 1_s__l_ + 2... _s__r_, and its length equals to _r_ - _l_ + 1. A substr...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定一个仅由字符 _0_ 和 _1_ 组成的字符串 #cf_span[s]。字符串 #cf_span[s] 的子串 #cf_span[[l, r]] 是指字符串 #cf_span[slsl + 1sl + 2... sr],其长度为 #cf_span[r - l + 1]。如果一个子串中零 (_0_) 的数量等于一的数量,则称该子串为 _平衡的_。\n\n你需要确定 #cf_span[s] 的最长 _...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z} $ be the length of the string. \nLet $ s = s_1 s_2 \\dots s_n $ be a string over $ \\{0, 1\\} $. \nFor a substring $ s[l:r] = s_l s_{l+1} \\dots s_r $, define its ...",
"is_translate": false,
"language": "Formal"
}
]
}