Up and Down by pi8027

import Monad;main=liftM2(foldr$zipWith($))getLine(getContents>>=(return.map(map f).lines))>>=putStr;f ' '=id;f '+'=succ;f '-'=pred

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

download

return to the top page