API Response (JSON)
{
"problem": {
"name": "B. Gluttony",
"description": {
"content": "You are given an array _a_ with _n_ distinct integers. Construct an array _b_ by permuting _a_ such that for every non-empty subset of indices _S_ = {_x_1, _x_2, ..., _x__k_} (1 ≤ _x__i_ ≤ _n_, 0 < _k",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF891B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given an array _a_ with _n_ distinct integers. Construct an array _b_ by permuting _a_ such that for every non-empty subset of indices _S_ = {_x_1, _x_2, ..., _x__k_} (1 ≤ _x__i_ ≤ _n_, 0 < _k...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给你一个包含 $n$ 个互不相同整数的数组 $[a]$。请通过重排 $[a]$ 构造一个数组 $[b]$,使得对于每一个非空真子集的索引集合 $S = \\{x_1, x_2, \\dots, x_k\\}$(其中 $1 \\le x_i \\le n$,且 $0 < k < n$),在 $[a]$ 和 $[b]$ 中这些位置上的元素之和均不相等,即\n\n第一行包含一个整数 $n$($1 \\le n \\le ...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z} $, $ 1 \\leq n \\leq 22 $. \nLet $ A = (a_1, a_2, \\dots, a_n) $ be a sequence of $ n $ distinct integers, $ 0 \\leq a_i \\leq 10^9 $. \nLet $ B = (b_1, b_2, \\dots,...",
"is_translate": false,
"language": "Formal"
}
]
}