API Response (JSON)
{
"problem": {
"name": "[PA 2021] Poborcy podatkowi",
"description": {
"content": "给定一棵 $n$ 个点的树,你可以选择若干条长度为 $4$(指 $4$ 条边) 的不相交链(**可以不选**)。 每个选链的方案的收益为所选链的并集的边权和,求最大收益。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 7000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P6"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP9047"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定一棵 $n$ 个点的树,你可以选择若干条长度为 $4$(指 $4$ 条边) 的不相交链(**可以不选**)。\n\n每个选链的方案的收益为所选链的并集的边权和,求最大收益。\n\n## Input\n\n第一行,一个整数 $n$;\n\n接下来 $n - 1$ 行,每行三个整数 $u, v, w$,表示树上的一条边 $(u, v)$,其边权为 $w$。\n\n## Output\n\n一行,一个整数,表示所求的值。\n...",
"is_translate": false,
"language": "English"
}
]
}