前面有相同的问题
假设有一个数组 a, 长度是kMaxItem = a(0)ArraySum = a(0)For i = 1 to k - 1 if MaxItem < a(i) then MaxItem = a(i) end if ArraySum = ArraySum + a(i)next iArrayAverage = ArraySum / k