Mercurial > repo
view Test.hs @ 4657:da987f0b6226
<oerjan> addquote <shachaf> you open the third door and behind it is an argument about the monty hall problem
author | HackBot |
---|---|
date | Wed, 11 Jun 2014 09:56:25 +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