API Response (JSON)
{
"problem": {
"name": "A. Maximal Binary Matrix",
"description": {
"content": "You are given matrix with _n_ rows and _n_ columns filled with zeroes. You should put _k_ ones in it in such a way that the resulting matrix is symmetrical with respect to the main diagonal (the diago",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF803A"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given matrix with _n_ rows and _n_ columns filled with zeroes. You should put _k_ ones in it in such a way that the resulting matrix is symmetrical with respect to the main diagonal (the diago...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给你一个大小为 #cf_span[n] × #cf_span[n] 的矩阵,初始时所有元素均为 0。你需要在其中放置 #cf_span[k] 个 1,使得结果矩阵关于主对角线(从左上角到右下角的对角线)对称,并且字典序最大。\n\n如果一个矩阵在从上到下第一个不同的行中,第一个不同的元素大于另一个矩阵对应位置的元素,则称该矩阵字典序更大。\n\n如果不存在这样的矩阵,则输出 _-1_。\n\n第一行包含两个数...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $, $ k \\in \\mathbb{Z}_{\\geq 0} $. \nLet $ A \\in \\{0,1\\}^{n \\times n} $ be a binary matrix. \n\n**Constraints** \n1. $ A $ is symmetric: $ A_{i,j} = A_{j,i} $ ...",
"is_translate": false,
"language": "Formal"
}
]
}