Mercurial > repo
view Test.hs @ 4545:29465f76eaa5
<oerjan> sed -i \'1183s/ </ </\' quotes
author | HackBot |
---|---|
date | Sun, 06 Apr 2014 11:52:53 +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