5 2 2 5 5 4
13
The following operations achieves $\sum_{i=1}^N A_i = 13$.
* Do the operation with $(i,j,k) = (1,3,5)$. The sequence $A$ is now $(2,2,3,5,4)$.
* Do the operation with $(i,j,k) = (3,4,5)$. The sequence $A$ is now $(2,2,3,3,4)$.
* Do the operation with $(i,j,k) = (2,3,4)$. The sequence $A$ is now $(2,2,2,3,4)$.5 3 1 4 1 5
11
3 3 1 3
7
3 3 5 3
9
{
"problem": {
"name": "Replace by Average",
"description": {
"content": "Given is a sequence of $N$ positive integers $A = (A_1, A_2, \\ldots, A_N)$. You can do the following operation on this sequence any number of times. * Choose integers $i, j, k$ such that $1\\leq i <",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc130_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Given is a sequence of $N$ positive integers $A = (A_1, A_2, \\ldots, A_N)$.\nYou can do the following operation on this sequence any number of times.\n\n* Choose integers $i, j, k$ such that $1\\leq i <...",
"is_translate": false,
"language": "English"
}
]
}