Mercurial > repo
view Test.hs @ 4570:5a4571b62410
<oerjan> cp bin/{,raw-}url; sed -i \'s/raw-//\' bin/url
author | HackBot |
---|---|
date | Tue, 15 Apr 2014 12:14:08 +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