Increasing Split by clock

System.in.eachLine{p=c=s=0
it.any{c=c+it as int;if(c>=p){s+=p=c;print"$c ";c=0}}println"="+s}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page