API Response (JSON)
{
"problem": {
"name": "D. Weighting a Tree",
"description": {
"content": "You are given a connected undirected graph with _n_ vertices and _m_ edges. The vertices are enumerated from 1 to _n_. You are given _n_ integers _c_1, _c_2, ..., _c__n_, each of them is between - _",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF901D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a connected undirected graph with _n_ vertices and _m_ edges. The vertices are enumerated from 1 to _n_.\n\nYou are given _n_ integers _c_1, _c_2, ..., _c__n_, each of them is between - _...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "你被给定一个具有 #cf_span[n] 个顶点和 #cf_span[m] 条边的连通无向图。顶点编号从 #cf_span[1] 到 #cf_span[n]。\n\n你被给定 #cf_span[n] 个整数 #cf_span[c1, c2, ..., cn],每个整数介于 #cf_span[ - n] 和 #cf_span[n] 之间(包含两端)。同时保证 #cf_span[cv] 的奇偶性与顶点 #...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ G = (V, E) $ be a connected undirected graph with $ n = |V| $ vertices and $ m = |E| $ edges, where $ V = \\{1, 2, \\dots, n\\} $. \nLet $ d_v $ denote the degree of vertex $ v \\i...",
"is_translate": false,
"language": "Formal"
}
]
}