System.in.eachLine{y=0 a=it.split()*.toLong()+0 a.sum{a=a.sum{[y-(y=-it)]}} println y}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page