API Response (JSON)
{
"problem": {
"name": "D. Graph And Its Complement",
"description": {
"content": "Given three numbers $n, a, b$. You need to find an adjacency matrix of such an undirected graph that the number of components in it is equal to $a$, and the number of components in its complement is $",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF990D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Given three numbers $n, a, b$. You need to find an adjacency matrix of such an undirected graph that the number of components in it is equal to $a$, and the number of components in its complement is $...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定三个数 $n, a, b$。你需要构造一个无向图的邻接矩阵,使得该图的连通分量个数为 $a$,其补图的连通分量个数为 $b$。矩阵必须对称,且主对角线上的所有元素必须为零。\n\n在无向图中不允许自环(从顶点到自身的边)。任意两个顶点之间最多只能有一条边。\n\n无向图的邻接矩阵是一个大小为 $n$ 的方阵,仅由 \"0\" 和 \"1\" 组成,其中 $n$ 是图的顶点数,第 $i$ 行和第 $i$ 列对应...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "Given $ n, a, b \\in \\mathbb{N} $ with $ 1 \\leq n \\leq 1000 $, $ 1 \\leq a, b \\leq n $, find a symmetric $ n \\times n $ binary matrix $ A = (a_{ij}) $ such that:\n\n- $ a_{ii} = 0 $ for all $ i \\in \\{1, \\...",
"is_translate": false,
"language": "Formal"
}
]
}