Mercurial > repo
view Test.hs @ 4544:390af1c95db9
<Jafet> addquote <int-e> fungot has not done me any harm yet <fungot> int-e: no niinku pl niinku fnord niinku fnord fnord fnord
author | HackBot |
---|---|
date | Sun, 06 Apr 2014 11:02:38 +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