API Response (JSON)
{
"problem": {
"name": "B. Frodo and pillows",
"description": {
"content": "_n_ hobbits are planning to spend the night at Frodo's house. Frodo has _n_ beds standing in a row and _m_ pillows (_n_ ≤ _m_). Each hobbit needs a bed and at least one pillow to sleep, however, every",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF760B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "_n_ hobbits are planning to spend the night at Frodo's house. Frodo has _n_ beds standing in a row and _m_ pillows (_n_ ≤ _m_). Each hobbit needs a bed and at least one pillow to sleep, however, every...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "#cf_span[n] 个霍比特人计划在弗罗多家过夜。弗罗多家有 #cf_span[n] 张床排成一行,以及 #cf_span[m] 个枕头(#cf_span[n ≤ m])。每个霍比特人需要一张床和至少一个枕头才能睡觉,但每个人都希望拥有尽可能多的枕头。当然,枕头不可能平均分配,但如果某个霍比特人的枕头数比至少一个邻居少至少两个,他就会感到受伤。\n\n弗罗多将睡在第 #cf_span[k] 张床上...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n, m, k \\in \\mathbb{Z}^+ $ with $ 1 \\leq n \\leq m \\leq 10^9 $ and $ 1 \\leq k \\leq n $. \nLet $ x \\in \\mathbb{Z}^+ $ be the number of pillows Frodo (on bed $ k $) receives. \nLe...",
"is_translate": false,
"language": "Formal"
}
]
}