API Response (JSON)
{
"problem": {
"name": "B. Ktree",
"description": {
"content": "You are given a tree consisting of N nodes and N - 1 weighted edges. You want to remove exactly M edges so that node 1 will remain in a component with exactly K nodes, while minimizing the sum of cost",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 65536
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF10100B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a tree consisting of N nodes and N - 1 weighted edges. You want to remove exactly M edges so that node 1 will remain in a component with exactly K nodes, while minimizing the sum of cost...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ T = (V, E) $ be a tree with $ |V| = N $ nodes and $ |E| = N - 1 $ weighted edges. \nLet $ w: E \\to \\mathbb{R}^+ $ be the edge cost function. \nLet $ M, K \\in \\mathbb{Z}^+ $ wit...",
"is_translate": false,
"language": "Formal"
}
]
}