Expansion coefficient of the array

CodeForces - 1159B