#!ruby -na t=d=0;eval"t-=$F[d-=1].to_i*n/=d;n*=l+d;"*n=l=$F.size;p t
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page