API Response (JSON)
{
"problem": {
"name": "[Ynoi2004] rpmtdq",
"description": {
"content": "给定一棵有边权的无根树,需要回答一些询问。 定义 $\\texttt{dist(i,j)}$ 代表树上点 $i$ 和点 $j$ 之间的距离。 对于每一组询问,会给出 $l,r$,你需要输出 $\\min(\\texttt{dist(i,j)})$ 其中 $l\\leq i < j \\leq r$。",
"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": "LGP9058"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定一棵有边权的无根树,需要回答一些询问。\n\n定义 $\\texttt{dist(i,j)}$ 代表树上点 $i$ 和点 $j$ 之间的距离。\n\n对于每一组询问,会给出 $l,r$,你需要输出 $\\min(\\texttt{dist(i,j)})$ 其中 $l\\leq i < j \\leq r$。\n\n## Input\n\n第一行一个整数 $n$,表示树的节点个数。\n\n接下来 $n-1$ 行,每行三个整数...",
"is_translate": false,
"language": "English"
}
]
}