API Response (JSON)
{
"problem": {
"name": "D. Sum of Medians",
"description": {
"content": "In one well-known algorithm of finding the _k_\\-th order statistics we should divide all elements into groups of five consecutive elements and find the median of each five. A median is called the midd",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF85D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "In one well-known algorithm of finding the _k_\\-th order statistics we should divide all elements into groups of five consecutive elements and find the median of each five. A median is called the midd...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "在一种著名的寻找第 #cf_span[k] 小元素的算法中,我们需要将所有元素划分为每五个连续元素一组,并求出每组的中位数。中位数是指排序后数组的中间元素(对于五个元素的组,它是第三大的元素)。为了提高该算法在现代显卡上的运行速度,你需要能够快速计算出数组中每五个元素的中位数之和。\n\n对于一个已排序的 #cf_span[k] 元素集合 #cf_span[S = {a1, a2, ..., ak}]...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ S \\subseteq \\mathbb{Z}^+ $ be a dynamic multiset (initially empty). \nLet $ |S| = k $, and let $ S = \\{a_1, a_2, \\dots, a_k\\} $ with $ a_1 < a_2 < \\dots < a_k $ be the sorted r...",
"is_translate": false,
"language": "Formal"
}
]
}