g(_:s)y|2*sum s>sum y=1+g s y|1>0=1 u=unwords f y=u(take(g x x)z)++"|"++u(drop(g x x)z) where z=words y x=map read z m@main=do getLine>>=putStrLn.f;m
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page