API Response (JSON)
{
"problem": {
"name": "C. PolandBall and Forest",
"description": {
"content": "PolandBall lives in a forest with his family. There are some trees in the forest. Trees are undirected acyclic graphs with _k_ vertices and _k_ - 1 edges, where _k_ is some integer. Note that one vert",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF755C"
},
"statements": [
{
"statement_type": "Markdown",
"content": "PolandBall lives in a forest with his family. There are some trees in the forest. Trees are undirected acyclic graphs with _k_ vertices and _k_ - 1 edges, where _k_ is some integer. Note that one vert...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "PolandBall 生活在一片森林中,与他的家人一起。森林中有一些树。树是无向无环图,包含 #cf_span[k] 个顶点和 #cf_span[k - 1] 条边,其中 #cf_span[k] 是某个整数。注意,单个顶点也是一个有效的树。\n\n每棵树的每个顶点中恰好住着一个亲属,他们的编号从 #cf_span[1] 到 #cf_span[n] 唯一。对于每个 Ball #cf_span[i],我们...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ be the number of vertices (Balls). \nLet $ p = (p_1, p_2, \\dots, p_n) $ be a sequence where $ p_i \\in \\{1, 2, \\dots, n\\} $ denotes the smallest-ID vertex a...",
"is_translate": false,
"language": "Formal"
}
]
}