API Response (JSON)
{
"problem": {
"name": "[BAPC 2006 资格赛] Booksort",
"description": {
"content": "给定 $n$ 本书,编号为 $1 \\sim n$。 在初始状态下,书是任意排列的。 在每一次操作中,可以抽取其中连续的一段,再把这段插入到其他某个位置。 我们的目标状态是把书按照 $1 \\sim n$ 的顺序依次排列。 求最少需要多少次操作。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P4"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP10488"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定 $n$ 本书,编号为 $1 \\sim n$。\n\n在初始状态下,书是任意排列的。\n\n在每一次操作中,可以抽取其中连续的一段,再把这段插入到其他某个位置。\n\n我们的目标状态是把书按照 $1 \\sim n$ 的顺序依次排列。\n\n求最少需要多少次操作。\n\n## Input\n\n第一行包含整数 $T$,表示共有 $T$ 组测试数据。\n\n每组数据包含两行,第一行为整数 $n$,表示书的数量。\n\n第二行为 ...",
"is_translate": false,
"language": "English"
}
]
}