API Response (JSON)
{
"problem": {
"name": "[Ynoi1999] XM66F",
"description": {
"content": "给定序列 $a_1,\\dots,a_n$ ,$m$ 次询问,每次询问给出 $l,r$ ,问有多少组 $(i,j,k)$ 满足 $l\\le i<j<k\\le r,\\;a_i=a_k>a_j$ 。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 3000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P6"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP10149"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定序列 $a_1,\\dots,a_n$ ,$m$ 次询问,每次询问给出 $l,r$ ,问有多少组 $(i,j,k)$ 满足 $l\\le i<j<k\\le r,\\;a_i=a_k>a_j$ 。\n\n## Input\n\n第一行两个整数 $n,m$。\n\n第二行 $n$ 个整数 $a_1,\\dots,a_n$。\n\n接下来 $m$ 行每行两个整数 $l,r$ 表示一个询问。\n\n## Output\n\n共 $m...",
"is_translate": false,
"language": "English"
}
]
}