API Response (JSON)
{
"problem": {
"name": "B. Optimal Point on a Line",
"description": {
"content": "You are given _n_ points on a line with their coordinates _x__i_. Find the point _x_ so the sum of distances to the given points is minimal.",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF710B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given _n_ points on a line with their coordinates _x__i_. Find the point _x_ so the sum of distances to the given points is minimal.\n\n## Input\n\nThe first line contains integer _n_ (1 ≤ _n_ ≤ 3...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定一条直线上 #cf_span[n] 个点的坐标 #cf_span[xi],请找到一个点 #cf_span[x],使得它到所有给定点的距离之和最小。\n\n第一行包含整数 #cf_span[n] (#cf_span[1 ≤ n ≤ 3·105]) —— 直线上点的个数。\n\n第二行包含 #cf_span[n] 个整数 #cf_span[xi] (#cf_span[ - 109 ≤ xi ≤ 109])...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ be the number of points. \nLet $ X = (x_1, x_2, \\dots, x_n) $ be a sequence of real numbers representing the coordinates of the points, sorted such that $ ...",
"is_translate": false,
"language": "Formal"
}
]
}