API Response (JSON)
{
"problem": {
"name": "B. Lecture Sleep",
"description": {
"content": "Your friend Mishka and you attend a calculus lecture. Lecture lasts _n_ minutes. Lecturer tells _a__i_ theorems during the _i_\\-th minute. Mishka is really interested in calculus, though it is so har",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF961B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Your friend Mishka and you attend a calculus lecture. Lecture lasts _n_ minutes. Lecturer tells _a__i_ theorems during the _i_\\-th minute.\n\nMishka is really interested in calculus, though it is so har...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "你的朋友 Mishka 和你一起参加微积分讲座。讲座持续 #cf_span[n] 分钟。在第 #cf_span[i] 分钟,讲师讲解了 #cf_span[ai] 个定理。\n\nMishka 对微积分非常感兴趣,但他很难在整个讲座过程中保持清醒。给你一个数组 #cf_span[t] 表示 Mishka 的行为。如果在第 #cf_span[i] 分钟 Mishka 处于睡眠状态,则 #cf_span[t...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n, k \\in \\mathbb{Z}^+ $ with $ 1 \\leq k \\leq n \\leq 10^5 $. \nLet $ A = (a_1, a_2, \\dots, a_n) $ be a sequence of positive integers, where $ a_i $ is the number of theorems tol...",
"is_translate": false,
"language": "Formal"
}
]
}