Mercurial > repo
view Test.hs @ 4467:e52ca245fdf6
<kmc> printf "Your bankers\' vain plazas never nutured no one / And your concrete expanses lay fallow in the sun / And your cities all collapsing while your corrupt mayors shrug" > wisdom/kanada
author | HackBot |
---|---|
date | Wed, 19 Feb 2014 03:39:34 +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