API Response (JSON)
{
"problem": {
"name": "[PFOI Round1] Two Subsegments",
"description": {
"content": "有 $T$ 组询问,每组询问给出一个长为 $n$ 的序列 $a$,保证 $a$ 是 $1\\sim n$ 的排列。 你可以选择一个数 $x$,然后你每次可以将一段长为 $x+1$ 或一段长为 $x-1$ 的序列在原序列中前移或后移 $x$ 位,将经过的部分移到空出来的地方。 请在 $80\\times n$ 次内将 $a$ 排成升序。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 2000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P7"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP8381"
},
"statements": [
{
"statement_type": "Markdown",
"content": "有 $T$ 组询问,每组询问给出一个长为 $n$ 的序列 $a$,保证 $a$ 是 $1\\sim n$ 的排列。\n\n你可以选择一个数 $x$,然后你每次可以将一段长为 $x+1$ 或一段长为 $x-1$ 的序列在原序列中前移或后移 $x$ 位,将经过的部分移到空出来的地方。\n\n请在 $80\\times n$ 次内将 $a$ 排成升序。\n\n## Input\n\n第一行一个正整数 $T$。\n\n接下来 $...",
"is_translate": false,
"language": "English"
}
]
}