API Response (JSON)
{
"problem": {
"name": "E. Anton and Tree",
"description": {
"content": "Anton is growing a tree in his garden. In case you forgot, the tree is a connected acyclic undirected graph. There are _n_ vertices in the tree, each of them is painted black or white. Anton doesn't ",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF734E"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Anton is growing a tree in his garden. In case you forgot, the tree is a connected acyclic undirected graph.\n\nThere are _n_ vertices in the tree, each of them is painted black or white. Anton doesn't ...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "Anton 在他的花园里种了一棵树。如果你忘记了,树是一个连通的无环无向图。\n\n树中有 #cf_span[n] 个顶点,每个顶点被涂成黑色或白色。Anton 不喜欢多色的树,因此他希望将树修改为所有顶点颜色相同(全黑或全白)。\n\nAnton 只能使用一种操作来改变颜色。我们记该操作为 #cf_span[paint(v)],其中 #cf_span[v] 是树中的某个顶点。该操作会改变所有满足“从 #...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ be the number of vertices in a tree. \nLet $ c: V \\to \\{0,1\\} $ be the initial coloring function, where $ c(v) = 0 $ denotes white and $ c(v) = 1 $ denotes...",
"is_translate": false,
"language": "Formal"
}
]
}