API Response (JSON)
{
"problem": {
"name": "F. Subtree Minimum Query",
"description": {
"content": "You are given a rooted tree consisting of _n_ vertices. Each vertex has a number written on it; number _a__i_ is written on vertex _i_. Let's denote _d_(_i_, _j_) as the distance between vertices _i_",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 6000,
"memory_limit": 524288
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF893F"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a rooted tree consisting of _n_ vertices. Each vertex has a number written on it; number _a__i_ is written on vertex _i_.\n\nLet's denote _d_(_i_, _j_) as the distance between vertices _i_...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定一棵包含 #cf_span[n] 个顶点的有根树。每个顶点上写有一个数字,顶点 #cf_span[i] 上写的数字为 #cf_span[ai]。\n\n记 #cf_span[d(i, j)] 为树中顶点 #cf_span[i] 与 #cf_span[j] 之间的距离(即从 #cf_span[i] 到 #cf_span[j] 的最短路径上的边数)。再记顶点 #cf_span[x] 的 _#cf_sp...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ T = (V, E) $ be a rooted tree with $ n $ vertices, where $ V = \\{1, 2, \\dots, n\\} $, and root $ r \\in V $. \nLet $ a_i \\in \\mathbb{Z}^+ $ denote the value written on vertex $ i...",
"is_translate": false,
"language": "Formal"
}
]
}