3 1 5 -10 2 0 -1 8 -11 3 20 23 26 1 2 3
\-5
8 9
-10 -9
2 9 4
7 5 3
6 1 8
For the input and output in the first case, $X={-5}, S={-5}$, for a score of $1$.
For the input and output in the second case, $X={8,-11,7,-12}, S={7,8,-11,-10}$, for a score of $3$.
For the input and output in the third case, $X={21,22,23,24,25,26,27,28,29}, S={28,21,26,23,25,27,24,29,22}$, for a score of $9$.{
"problem": {
"name": "Cross Sum Construction",
"description": {
"content": "You are given a positive integer $N$ and integer sequences of length $N$: $A=(a_1,\\ldots,a_N)$ and $B=(b_1,\\ldots,b_N)$. Let $X$ be the multiset of $N^2$ instances $(a_i+b_j)(1 \\leq i,j \\leq N)$. Fo",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "agc064_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a positive integer $N$ and integer sequences of length $N$: $A=(a_1,\\ldots,a_N)$ and $B=(b_1,\\ldots,b_N)$. \nLet $X$ be the multiset of $N^2$ instances $(a_i+b_j)(1 \\leq i,j \\leq N)$.\nFo...",
"is_translate": false,
"language": "English"
}
]
}