API Response (JSON)
{
"problem": {
"name": "C. Useful Decomposition",
"description": {
"content": "Ramesses knows a lot about problems involving trees (undirected connected graphs without cycles)! He created a new useful tree decomposition, but he does not know how to construct it, so he asked you",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF981C"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Ramesses knows a lot about problems involving trees (undirected connected graphs without cycles)!\n\nHe created a new useful tree decomposition, but he does not know how to construct it, so he asked you...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "Ramesses 对涉及树(无环无向连通图)的问题非常熟悉!\n\n他发明了一种新的有用树分解方法,但他不知道如何构造它,因此向你求助!\n\n这种分解要求将树的边划分为若干条简单路径,使得任意两条路径至少有一个公共顶点,且每条边恰好属于一条路径。\n\n请帮助 Ramesses 找到这样的树分解,或判定不存在这样的分解。\n\n第一行包含一个整数 $n$ ($2 lt.eq n lt.eq 10^5$),表示树...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ T = (V, E) $ be a tree with $ |V| = n $, $ |E| = n - 1 $. \nA *path decomposition* of $ T $ is a set $ \\mathcal{P} = \\{P_1, P_2, \\dots, P_m\\} $, where each $ P_i $ is a simple ...",
"is_translate": false,
"language": "Formal"
}
]
}