- 3


. , (k-l)-ro :

Sk-1

= (Z1 + ... + Zk-1)/(k-l).

k-e

Sk = Sk-1(k-l)/k + Zk/k =

= (Z1 + ... + Zk-1)/(k-l)×(k-l)/k + Zk/k = (Z1 + ... + Zk-1)/k + Zk/k.

. , ­ k = 1, 2,..., N. , k = N

SN

= (Z1 + ... + ZN-1)/N + ZN/N = (Z1 + ... + ZN)/N.

, Z1, Z2, ..., ZN.

, data.

 

: dan: '

{<> <> </>}* data ,, 300000

{...................} data ,, 240000

/= <Zcpe> data ,, 120000

data , , 0

 

, .

'

cls

( :) ? :

s

:= 0: k := 0 s = 0: k = 0

do