##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
| # | Title | Points | Solved | Admin | |
|---|---|---|---|---|---|
You are given three arrays , , and , each of length .
You may cyclically shift each array any number of times. More formally, for each array you may choose any rotation of its elements.
After choosing the rotations, let the resulting arrays be , , and .
The score of these three arrays is
Find the maximum possible score.
There is only one position, so the score is .
One best choice makes the arrays , , and . The score is .
We can rotate the arrays so that all three values are placed in the same position. The score becomes .
One best choice makes the third array . The position sums become , so the score is .
One best choice makes the second array and keeps the third array unchanged. The position sums become , so the score is .