API Response (JSON)
{
"problem": {
"name": "G. Tree Queries",
"description": {
"content": "You are given a tree consisting of _n_ vertices (numbered from 1 to _n_). Initially all vertices are white. You have to process _q_ queries of two different types: 1. 1 _x_ — change the color of ver",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF825G"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a tree consisting of _n_ vertices (numbered from 1 to _n_). Initially all vertices are white. You have to process _q_ queries of two different types:\n\n1. 1 _x_ — change the color of ver...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给你一棵包含 #cf_span[n] 个顶点的树(编号从 #cf_span[1] 到 #cf_span[n])。初始时所有顶点均为白色。你需要处理 #cf_span[q] 个两种不同类型的查询:\n\n对于每个类型为 #cf_span[2] 的查询,请输出其答案。\n\n*注意:查询是以修改过的方式给出的*。\n\n第一行包含两个数 #cf_span[n] 和 #cf_span[q](#cf_span[3 ≤...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n, q \\in \\mathbb{Z}^+ $ denote the number of vertices and queries, respectively. \nLet $ T = (V, E) $ be a tree with vertex set $ V = \\{1, 2, \\dots, n\\} $ and edge set $ E $ of...",
"is_translate": false,
"language": "Formal"
}
]
}