API Response (JSON)
{
"problem": {
"name": "E. Minimal Labels",
"description": {
"content": "You are given a directed acyclic graph with _n_ vertices and _m_ edges. There are no self-loops or multiple edges between any pair of vertices. Graph can be disconnected. You should assign labels to ",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF825E"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a directed acyclic graph with _n_ vertices and _m_ edges. There are no self-loops or multiple edges between any pair of vertices. Graph can be disconnected.\n\nYou should assign labels to ...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定一个有 #cf_span[n] 个顶点和 #cf_span[m] 条边的有向无环图。图中不存在自环,任意两个顶点之间也不存在多条边。图可以是不连通的。\n\n你需要为所有顶点分配标签,使得:\n\n找到满足所有条件的标签序列。\n\n第一行包含两个整数 #cf_span[n], #cf_span[m] (#cf_span[2 ≤ n ≤ 105, 1 ≤ m ≤ 105])。\n\n接下来 #cf_span[...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ G = (V, E) $ be a directed acyclic graph (DAG), where: \n- $ V = \\{1, 2, \\dots, n\\} $ is the set of vertices, \n- $ E \\subseteq V \\times V $ is the set of directed edges, with ...",
"is_translate": false,
"language": "Formal"
}
]
}