API Response (JSON)
{
"problem": {
"name": "D. Walking Between Houses",
"description": {
"content": "There are $n$ houses in a row. They are numbered from $1$ to $n$ in order from left to right. Initially you are in the house $1$. You have to perform $k$ moves to other house. In one move you go from",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF1015D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $n$ houses in a row. They are numbered from $1$ to $n$ in order from left to right. Initially you are in the house $1$.\n\nYou have to perform $k$ moves to other house. In one move you go from...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "有一排 $n$ 座房子,从左到右编号为 $1$ 到 $n$。最初你位于房子 $1$。\n\n你需要进行 $k$ 次移动到其他房子。每次移动,你从当前房子移动到另一个房子。你不能停留在原地(即每次移动后的新房子必须与当前房子不同)。如果你从房子 $x$ 移动到房子 $y$,你行走的总距离增加 $| x -y |$ 单位,其中 $| a |$ 表示 $a$ 的绝对值。你可以多次访问同一座房子(但不能连续两...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n, k, s \\in \\mathbb{Z}^+ $ with $ n \\geq 2 $, $ k \\geq 1 $, $ s \\geq 1 $. \nLet $ H = (h_1, h_2, \\dots, h_k) $ be a sequence of house indices, where $ h_i \\in \\{1, 2, \\dots, n\\...",
"is_translate": false,
"language": "Formal"
}
]
}