API Response (JSON)
{
"problem": {
"name": "D. Sloth",
"description": {
"content": "Sloth is bad, mkay? So we decided to prepare a problem to punish lazy guys. You are given a tree, you should count the number of ways to remove an edge from it and then add an edge to it such that th",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF891D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Sloth is bad, mkay? So we decided to prepare a problem to punish lazy guys.\n\nYou are given a tree, you should count the number of ways to remove an edge from it and then add an edge to it such that th...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "[{\"iden\":\"statement\",\"content\":\"懒惰是坏的,明白吗?因此我们决定出一道题来惩罚懒惰的人。\\n\\n给你一棵树,你需要计算有多少种方式可以移除一条边,然后添加一条边,使得最终的图仍然是一棵树,并且具有一个完美匹配。两种操作方式被认为是不同的,当且仅当它们移除的边或添加的边不同。移除的边和添加的边可以相同。\\n\\n一个完美匹配是一组边的子集,使得每个顶点恰好是其中一条边的...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ T = (V, E) $ be a tree with $ n $ vertices ($ n \\geq 2 $), where $ V = \\{v_1, \\dots, v_n\\} $ and $ |E| = n - 1 $. \n\n**Constraints** \n1. $ 2 \\leq n \\leq 5 \\cdot 10^5 $ \n2. $ ...",
"is_translate": false,
"language": "Formal"
}
]
}