Mercurial > repo
view Test.hs @ 4654:d6d727dead8d
<oerjan> addquote <int-e> The people of Procrasti hereby resolve to lodge a formal complaint with Taneb and nortti about their ridicule of Procasti\'s glorious nation... later.
author | HackBot |
---|---|
date | Sat, 07 Jun 2014 19:24:43 +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