API Response (JSON)
{
"problem": {
"name": "J. Segments",
"description": {
"content": "There is a straight line colored in white. _n_ black segments are added on it one by one. After each segment is added, determine the number of connected components of black segments (i. e. the number",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF953J"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There is a straight line colored in white. _n_ black segments are added on it one by one.\n\nAfter each segment is added, determine the number of connected components of black segments (i. e. the number...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "有一条白色直线。依次向其上添加 #cf_span[n] 个黑色线段。\n\n在每个线段添加后,确定黑色线段的连通分量数量(即黑色线段并集中的线段段数)。\n\n特别地,如果一个线段的右端点为 #cf_span[x],另一个线段的左端点也为 #cf_span[x],则这两个线段属于同一个连通分量。\n\n第一行包含一个整数 #cf_span[n](#cf_span[1 ≤ n ≤ 200 000])——线段的数...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ be the number of segments. \nLet $ S_i = [l_i, r_i] \\subset \\mathbb{R} $ be the $ i $-th closed interval (segment) added, with $ 1 \\leq l_i < r_i \\leq 10^9...",
"is_translate": false,
"language": "Formal"
}
]
}