API Response (JSON)
{
"problem": {
"name": "[Ynoi2001] 冷たい部屋、一人",
"description": {
"content": "给定 $n,m$,以及序列 $a_1,a_2,\\dots,a_n$ 和 $1,2,\\dots,n$ 的排列 $y_1,y_2,\\dots,y_n$,你需要回答 $m$ 个询问。 对每个询问,给定 $l,r$,查询: $\\sum\\limits_{i=1}^n\\sum\\limits_{j=i+1}^n [a_i=a_j]\\cdot\\prod_{k=i}^j [l\\le y_k\\le r]$; 其",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 9000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P7"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP9337"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定 $n,m$,以及序列 $a_1,a_2,\\dots,a_n$ 和 $1,2,\\dots,n$ 的排列 $y_1,y_2,\\dots,y_n$,你需要回答 $m$ 个询问。\n\n对每个询问,给定 $l,r$,查询:\n\n$\\sum\\limits_{i=1}^n\\sum\\limits_{j=i+1}^n [a_i=a_j]\\cdot\\prod_{k=i}^j [l\\le y_k\\le r]$;\n\n其...",
"is_translate": false,
"language": "English"
}
]
}