API Response (JSON)
{
"problem": {
"name": "D. Broken BST",
"description": {
"content": "Let _T_ be arbitrary binary tree — tree, every vertex of which has no more than two children. Given tree is rooted, so there exists only one vertex which doesn't have a parent — it's the root of a tre",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF797D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Let _T_ be arbitrary binary tree — tree, every vertex of which has no more than two children. Given tree is rooted, so there exists only one vertex which doesn't have a parent — it's the root of a tre...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "设 #cf_span[T] 为任意二叉树——每个顶点最多有两个子节点的树。给定的树是有根的,因此存在唯一一个没有父节点的顶点——即树的根。每个顶点上写有一个整数。对树 #cf_span[T] 中的每个值运行以下算法:\n\n以下是所描述算法的伪代码:\n\n如果该树是二叉搜索树(即对每个节点,其左子树中的值均小于该节点的值,右子树中的值均大于该节点的值),则上述算法能正确运行。但如果树不是二叉搜索树,则可...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z} $ be the number of vertices in a rooted binary tree. \nFor each vertex $ i \\in \\{1, \\dots, n\\} $, let: \n- $ v_i \\in \\mathbb{Z} $ be the value stored at vertex...",
"is_translate": false,
"language": "Formal"
}
]
}