Mercurial > repo
view Test.hs @ 4649:786d0d638b96
<kmc> addquote <zzo38> My goal is to win, not to knock out your pokemon. Didn\'t you know that?
author | HackBot |
---|---|
date | Tue, 03 Jun 2014 05:25:17 +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