API Response (JSON)
{
"problem": {
"name": "H. Path Counting",
"description": {
"content": "You are given a rooted tree. Let's denote _d_(_x_) as depth of node _x_: depth of the root is 1, depth of any other node _x_ is _d_(_y_) + 1, where _y_ is a parent of _x_. The tree has the following ",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 5000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF954H"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a rooted tree. Let's denote _d_(_x_) as depth of node _x_: depth of the root is 1, depth of any other node _x_ is _d_(_y_) + 1, where _y_ is a parent of _x_.\n\nThe tree has the following ...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "[{\"iden\":\"statement\",\"content\":\"你被给定一棵有根树。记 #cf_span[d(x)] 为节点 #cf_span[x] 的深度:根节点的深度为 #cf_span[1],其他任意节点 #cf_span[x] 的深度为 #cf_span[d(y) + 1],其中 #cf_span[y] 是 #cf_span[x] 的父节点。\\n\\n这棵树具有以下性质:每个满足 #cf_s...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z} $ with $ 2 \\leq n \\leq 5000 $. \nLet $ a_i \\in \\mathbb{Z} $ for $ 1 \\leq i \\leq n-1 $, where $ a_i \\geq 2 $, and $ a_n = 0 $. \nThe tree is rooted at node of d...",
"is_translate": false,
"language": "Formal"
}
]
}