Mercurial > repo
view Test.hs @ 4534:8287dfbb27b8
<kmc> addquote <shachaf> pippi l\xc3\xa5ngstrump\'s name is translated as "gilgi" or "bilbi" usually <ion> Does she have a ring of power?
author | HackBot |
---|---|
date | Sat, 29 Mar 2014 23:56:11 +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