API Response (JSON)
{
"problem": {
"name": "E. Tree Constructing",
"description": {
"content": "You are given three integers $n$, $d$ and $k$. Your task is to construct an undirected tree on $n$ vertices with diameter $d$ and degree of each vertex at most $k$, or say that it is impossible. An ",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 4000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF1003E"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given three integers $n$, $d$ and $k$.\n\nYour task is to construct an undirected tree on $n$ vertices with diameter $d$ and degree of each vertex at most $k$, or say that it is impossible.\n\nAn ...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定三个整数 $n$、$d$ 和 $k$。\n\n你的任务是构造一棵包含 $n$ 个顶点的无向树,使其直径为 $d$,且每个顶点的度数不超过 $k$;若不可能,则指出不可能。\n\n无向树是一个具有 $n - 1$ 条边的连通无向图。\n\n树的直径是该树中所有顶点对之间最简单路径(每个顶点至多出现一次的路径)的最大长度。\n\n顶点的度数是指与该顶点相连的边的数量(即对于顶点 $u$,它是属于树的边 $(u, ...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n, d, k \\in \\mathbb{Z}^+ $ with $ 1 \\leq n, d, k \\leq 4 \\cdot 10^5 $. \n\nLet $ T = (V, E) $ be an undirected tree with: \n- $ |V| = n $, \n- $ |E| = n - 1 $, \n- Diameter $ \\ma...",
"is_translate": false,
"language": "Formal"
}
]
}