API Response (JSON)
{
"problem": {
"name": "F. Heaps",
"description": {
"content": "You're given a tree with _n_ vertices rooted at 1. We say that there's a _k_\\-ary heap of depth _m_ located at _u_ if the following holds: * For _m_ = 1 _u_ itself is a _k_\\-ary heap of depth 1. *",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 524288
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF955F"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You're given a tree with _n_ vertices rooted at 1.\n\nWe say that there's a _k_\\-ary heap of depth _m_ located at _u_ if the following holds:\n\n* For _m_ = 1 _u_ itself is a _k_\\-ary heap of depth 1.\n*...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给你一棵有 #cf_span[n] 个顶点、根为 #cf_span[1] 的树。\n\n我们说在 #cf_span[u] 处存在一个深度为 #cf_span[m] 的 #cf_span[k]-叉堆,当且仅当满足以下条件:\n\n记 #cf_span[dpk(u)] 为以 #cf_span[u] 为根的子树中(包含 #cf_span[u])最大的 #cf_span[k]-叉堆的深度。你的目标是计算 。\n\n第...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "Let $ T $ be a rooted tree with $ n $ vertices, rooted at vertex $ 1 $. For each vertex $ u $ and integer $ k \\geq 1 $, define $ \\text{dp}_k(u) $ as the maximum depth of a $ k $-ary heap rooted at $ u...",
"is_translate": false,
"language": "Formal"
}
]
}