API Response (JSON)
{
"problem": {
"name": "BZOJ2720 [Violet 5] 列队春游",
"description": {
"content": "给定正整数数列 $h_1,h_2,\\cdots,h_n$。设 $p$ 为 $1\\sim n$ 的随机排列。 定义 $h'_i=h_{p_i}$。定义 $\\mathrm{pre}_i$ 为最大的 $j\\lt i$ 满足 $h'_j\\ge h'_i$(如果不存在,规定为 $0$)。 求出 $\\displaystyle \\sum_{i=1}^n (i-\\mathrm{pre}_i)$ 的期望值,保留",
"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": "LGP10668"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定正整数数列 $h_1,h_2,\\cdots,h_n$。设 $p$ 为 $1\\sim n$ 的随机排列。\n\n定义 $h'_i=h_{p_i}$。定义 $\\mathrm{pre}_i$ 为最大的 $j\\lt i$ 满足 $h'_j\\ge h'_i$(如果不存在,规定为 $0$)。\n\n求出 $\\displaystyle \\sum_{i=1}^n (i-\\mathrm{pre}_i)$ 的期望值,保留...",
"is_translate": false,
"language": "English"
}
]
}