Up and Down by nn

s=0
System.in.eachLine{l=it.grep{1}
s?l.eachWithIndex{v,i->v>' '?v>'+'?--s[i]:++s[i]:0}:(s=l)}
print s.join()

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

download

return to the top page