Mercurial > repo
view Test.hs @ 4563:d73f4abb5ee2
<b_jonas> chmod a+x bin/8ball && cp bin/8{,-}ball
author | HackBot |
---|---|
date | Tue, 15 Apr 2014 10:21:51 +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