Mercurial > repo
view Test.hs @ 4609:038fcc1f45ea
<elliott> addquote <fowl> one day we\'ll be able to put evil people inside mirrors and throw them into space like superman 2
author | HackBot |
---|---|
date | Fri, 25 Apr 2014 03:31:28 +0000 |
parents | 7f957c1f4661 |
children |
line wrap: on
line source
import Data.List(inits);main = let p = 1 : zipWith (+) (map (*4) p) (map (sum . zipWith (*) p . reverse) (inits p)) in print $ p !! 1000