Mercurial > repo
view Test.hs @ 4626:33e5cd3aff7c
<oerjan> addquote <Taneb> Have some advice! <Taneb> If you are running to give someone a hug <Taneb> And they look like they are preparing to rugby tackle you <Taneb> Abort hug immediately. <Taneb> Seriously, my jaw still hurts
author | HackBot |
---|---|
date | Sun, 04 May 2014 07:22: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