$<.map{|l|a=1;s=i=0;l.split.map{|e|s-=e.to_i*a=a*(i-10)/i+=1};p s}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page