API Response (JSON)
{
"problem": {
"name": "[LMXOI Round 1] Placer",
"description": {
"content": "LMX 给出了一个长度为 $n$ 括号序列 $S$,以及一个长度为 $n$ 的序列 $a_i$。 定义 $w(l,r)= \\begin{cases} a_r-a_l, & S_{l..r} \\text{为合法括号序列}\\\\ \\ 0 & \\text{otherwise} \\end{cases}$ 你可以将序列分成若干非空子段,定义整个序列的美丽度为每段的 $w(l , r)$ 之和。 求美丽度",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P4"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP10115"
},
"statements": [
{
"statement_type": "Markdown",
"content": "LMX 给出了一个长度为 $n$ 括号序列 $S$,以及一个长度为 $n$ 的序列 $a_i$。\n\n定义 $w(l,r)=\n\\begin{cases}\na_r-a_l, & S_{l..r} \\text{为合法括号序列}\\\\\n\\ 0 & \\text{otherwise}\n\\end{cases}$\n\n你可以将序列分成若干非空子段,定义整个序列的美丽度为每段的 $w(l , r)$ 之和。\n\n求美丽度...",
"is_translate": false,
"language": "English"
}
]
}