Mercurial > repo
view Test.hs @ 4585:ae62c111913c
<fizzie> rm 1 2 # let\'s keep things tidy here
author | HackBot |
---|---|
date | Sat, 19 Apr 2014 23:43:31 +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