API Response (JSON)
{
"problem": {
"name": "B. Batch Sort",
"description": {
"content": "You are given a table consisting of _n_ rows and _m_ columns. Numbers in each row form a permutation of integers from 1 to _m_. You are allowed to pick two elements in one row and swap them, but **n",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF724B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a table consisting of _n_ rows and _m_ columns.\n\nNumbers in each row form a permutation of integers from 1 to _m_.\n\nYou are allowed to pick two elements in one row and swap them, but **n...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定一个包含 #cf_span[n] 行和 #cf_span[m] 列的表格。\n\n每行中的数字构成从 #cf_span[1] 到 #cf_span[m] 的一个排列。\n\n你可以选择某一行中的两个元素进行交换,但每行最多只能交换一次。此外,你最多只能进行一次列交换操作,即选择两列并交换它们。因此,你总共可以执行从 #cf_span[0] 到 #cf_span[n + 1] 次操作。*操作的顺序可以任...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n, m \\in \\mathbb{Z}^+ $ with $ 1 \\leq n, m \\leq 20 $. \nLet $ T = (R_1, R_2, \\dots, R_n) $ be a table of $ n $ rows, where each $ R_i = (r_{i,1}, r_{i,2}, \\dots, r_{i,m}) $ is ...",
"is_translate": false,
"language": "Formal"
}
]
}