API Response (JSON)
{
"problem": {
"name": "A. Arya and Bran",
"description": {
"content": "Bran and his older sister Arya are from the same house. Bran like candies so much, so Arya is going to give him some Candies. At first, Arya and Bran have 0 Candies. There are _n_ days, at the _i_\\-t",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF839A"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Bran and his older sister Arya are from the same house. Bran like candies so much, so Arya is going to give him some Candies.\n\nAt first, Arya and Bran have 0 Candies. There are _n_ days, at the _i_\\-t...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "Bran 和他的姐姐 Arya 来自同一个家族。Bran 非常喜欢糖果,因此 Arya 计划给他一些糖果。\n\n最初,Arya 和 Bran 都有 $0$ 颗糖果。共有 $n$ 天,在第 $i$ 天,Arya 会从 Many-Faced God 那里得到 $a_i$ 颗糖果。每天她最多可以给 Bran $8$ 颗糖果。如果当天没有给他糖果,这些糖果会被保留下来,供以后使用。\n\n你的任务是找出 Ary...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n, k \\in \\mathbb{Z}^+ $ denote the number of days and the target number of candies to give Bran, respectively. \nLet $ A = (a_1, a_2, \\dots, a_n) $ be a sequence of integers, w...",
"is_translate": false,
"language": "Formal"
}
]
}