Solution in haskell

Add a reply

Posted by pierre 965 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? :-)
Posted by Benjamin000 246 days ago:

it is a nice day !
-------------------------------------------------------------------------------


TaylorMade R9 Irons
Taylormade R7 CGB MAX Irons
Callaway X-22 Iron Set
Taylormade R7 CGB MAX Fairway Wood
Titleist AP2 Irons
Ping G15 Irons
Callaway X-22 Iron Set

Add a reply