Skip to content

Instantly share code, notes, and snippets.

@oskimura
Created September 22, 2010 14:21
Show Gist options
  • Save oskimura/591753 to your computer and use it in GitHub Desktop.
Save oskimura/591753 to your computer and use it in GitHub Desktop.
-- http://ideone.com/WeepT
solve = max' . map sum $ seq
where
tri = [2,3,4,5,10]
seq =[ [x,y,z] | x <- tri, y <- tri , z <- tri
, x/=y,y=z,x/=z,x<(y+z)
]
max' = foldr1 max
main = print $ solve
@oskimura
Copy link
Author

/=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment