Mercurial > repo
view Test.hs @ 4441:14a7379718c7
<boily> learn M–rdalsjökull is a draconic volcano harbouring the secret KATL base.
author | HackBot |
---|---|
date | Fri, 14 Feb 2014 00:10:05 +0000 |
parents | 1baee8e6ee55 |
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