API Response (JSON)
{
"problem": {
"name": "C. Centroids",
"description": {
"content": "_Tree_ is a connected acyclic graph. Suppose you are given a tree consisting of _n_ vertices. The vertex of this tree is called _centroid_ if the size of each connected component that appears if this ",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 4000,
"memory_limit": 524288
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF708C"
},
"statements": [
{
"statement_type": "Markdown",
"content": "_Tree_ is a connected acyclic graph. Suppose you are given a tree consisting of _n_ vertices. The vertex of this tree is called _centroid_ if the size of each connected component that appears if this ...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "_树_ 是一个连通的无环图。假设你被给定一棵包含 #cf_span[n] 个顶点的树。如果从树中移除某个顶点后,每个连通分量的大小都不超过 #cf_span[n/2],则该顶点被称为 _重心_。\n\n你被给定一棵大小为 #cf_span[n] 的树,可以执行至多一次边替换操作。_边替换_ 是指从树中移除一条边(不删除其关联的顶点),并插入一条新的边(不添加新顶点),使得图仍然是一棵树。对于每个顶点,...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ T = (V, E) $ be a tree with $ n = |V| $ vertices and $ n-1 $ edges. \nFor a vertex $ v \\in V $, let $ C_v $ denote the multiset of sizes of connected components of $ T \\setminu...",
"is_translate": false,
"language": "Formal"
}
]
}