Solution in haskell

Add a reply

Posted by pierre 348 days ago:
I consider this far from best, but can't shorten more

main=getContents>>=print.maximum.foldr1(\x y->(zipWith(+)x y)++[sum x]).map(map read.words).lines

Why there's no section for haskell? :-)

Add a reply