API Response (JSON)
{
"problem": {
"name": "C. Dividing the numbers",
"description": {
"content": "Petya has _n_ integers: 1, 2, 3, ..., _n_. He wants to split these integers in **two non-empty** groups in such a way that the absolute difference of sums of integers in each group is as small as poss",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF899C"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Petya has _n_ integers: 1, 2, 3, ..., _n_. He wants to split these integers in **two non-empty** groups in such a way that the absolute difference of sums of integers in each group is as small as poss...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "Petya 有 #cf_span[n] 个整数:#cf_span[1, 2, 3, ..., n]。他希望将这些整数划分为 *两个非空* 组,使得每组整数之和的绝对差尽可能小。\n\n请帮助 Petya 划分这些整数。每个 #cf_span[n] 个整数必须恰好属于一个组。\n\n第一行包含一个整数 #cf_span[n] (#cf_span[2 ≤ n ≤ 60 000]) —— Petya 拥有的整数...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z} $ with $ 2 \\leq n \\leq 60{,}000 $. \nLet $ S = \\{1, 2, \\dots, n\\} $, and let $ T = \\sum_{i=1}^n i = \\frac{n(n+1)}{2} $. \n\n**Constraints** \nPartition $ S $ in...",
"is_translate": false,
"language": "Formal"
}
]
}