Mercurial > repo
view Test.hs @ 4421:114398f3b359
<kmc> printf \'echo "$1" | /hackenv/lib/cdecl\\n\' > bin/cdecl && chmod +x bin/cdecl
author | HackBot |
---|---|
date | Sun, 09 Feb 2014 02:02:01 +0000 |
parents | 1baee8e6ee55 |
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