API Response (JSON)
{
"problem": {
"name": "[Ynoi2000] pri",
"description": {
"content": "给定 $1,\\dots,n$ 的排列 $a_1,\\dots,a_n$ ; 共 $m$ 次操作,每次操作给出 $x$ ,首先进行修改,将 $a_1,a_2,\\dots,a_x$ 翻转为 $a_x,\\dots,a_2,a_1$ ,然后查询有多少组不同的 $(i,j)$ ,满足 $1\\le i<j\\le x$ 使得 $a_i<a_j$ 。",
"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": "LGP10028"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定 $1,\\dots,n$ 的排列 $a_1,\\dots,a_n$ ;\n\n共 $m$ 次操作,每次操作给出 $x$ ,首先进行修改,将 $a_1,a_2,\\dots,a_x$ 翻转为 $a_x,\\dots,a_2,a_1$ ,然后查询有多少组不同的 $(i,j)$ ,满足 $1\\le i<j\\le x$ 使得 $a_i<a_j$ 。\n\n## Input\n\n第一行两个整数 $n,m$ ;\n\n第二行...",
"is_translate": false,
"language": "English"
}
]
}