API Response (JSON)
{
"problem": {
"name": "[集训队互测 2023] Permutation Counting 2",
"description": {
"content": "给定 $n$,对于每组 $x,y\\in [0,n)$ 求出有多少个 $1\\sim n$ 的排列 $p$ 满足以下条件: - $\\sum\\limits_{i=1}^{n-1}[p_i<p_{i+1}]=x$。 - $\\sum\\limits_{i=1}^{n-1}[p^{-1}_i<p^{-1}_{i+1}]=y$。 其中 $p^{-1}$ 表示 $p$ 的逆排列,满足 $p^{-1}_{p_i",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 5000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P7"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP10004"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定 $n$,对于每组 $x,y\\in [0,n)$ 求出有多少个 $1\\sim n$ 的排列 $p$ 满足以下条件:\n\n- $\\sum\\limits_{i=1}^{n-1}[p_i<p_{i+1}]=x$。\n\n- $\\sum\\limits_{i=1}^{n-1}[p^{-1}_i<p^{-1}_{i+1}]=y$。\n\n其中 $p^{-1}$ 表示 $p$ 的逆排列,满足 $p^{-1}_{p_i...",
"is_translate": false,
"language": "English"
}
]
}