API Response (JSON)
{
"problem": {
"name": "D. Suit and Tie",
"description": {
"content": "Allen is hosting a formal dinner party. $2n$ people come to the event in $n$ pairs (couples). After a night of fun, Allen wants to line everyone up for a final picture. The $2n$ people line up, but Al",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF996D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Allen is hosting a formal dinner party. $2n$ people come to the event in $n$ pairs (couples). After a night of fun, Allen wants to line everyone up for a final picture. The $2n$ people line up, but Al...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "Allen 正在举办一场正式的晚宴。$2 n$ 个人以 $n$ 对(情侣)的形式到场。经过一夜的欢乐后,Allen 希望将所有人排成一列拍最后一张照片。$2 n$ 个人排成一列,但 Allen 不喜欢当前的顺序。他更希望每对情侣占据相邻的位置,这样照片会更美观。\n\n帮助 Allen 找出他必须执行的最少相邻位置交换次数,使得每对情侣都占据相邻位置。\n\n第一行包含一个整数 $n$($1 lt.eq ...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z} $ be the number of couples. \nLet $ A = (a_1, a_2, \\dots, a_{2n}) $ be a sequence of integers where each integer $ i \\in \\{1, 2, \\dots, n\\} $ appears exactly t...",
"is_translate": false,
"language": "Formal"
}
]
}