Increasing Split by nn

System.in.eachLine{s=p=c=0
it.each{c=10*c+(int)it-48;c<p||[print("$c "),s+=p=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