Mercurial > repo
view Test.hs @ 4680:05135213c708
<oerjan> addquote <boily> I wonder if customs consider spare human fingers to be in the same category as yak cheese...
author | HackBot |
---|---|
date | Wed, 02 Jul 2014 00:10:11 +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