API Response (JSON)
{
"problem": {
"name": "[Ynoi2005] tdnmo",
"description": {
"content": "给定一棵 $n$ 个顶点的有根树,顶点编号为 $1,2,\\dots,n$,$1$ 号顶点为根。定义有向邻域 $N(x,y)$ 为以 $x$ 为根的子树中,距离 $x$ 小于 $y$ 的顶点构成的集合,其中 $1\\le x\\le n,\\;0\\le y\\le n$,$x,y$ 为整数。 给出 $m$ 个有向邻域 $N(x_i,y_i)_{i=1}^m$,你可以从 $N(1,0)$ 出发,经过不超过 ",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 2000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P6"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP8204"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定一棵 $n$ 个顶点的有根树,顶点编号为 $1,2,\\dots,n$,$1$ 号顶点为根。定义有向邻域 $N(x,y)$ 为以 $x$ 为根的子树中,距离 $x$ 小于 $y$ 的顶点构成的集合,其中 $1\\le x\\le n,\\;0\\le y\\le n$,$x,y$ 为整数。\n\n给出 $m$ 个有向邻域 $N(x_i,y_i)_{i=1}^m$,你可以从 $N(1,0)$ 出发,经过不超过 ...",
"is_translate": false,
"language": "English"
}
]
}