Mercurial > repo
view Test.hs @ 4704:67baaabc17e9
<mroman> echo "#!/bin/sh" > bin/CoInS
author | HackBot |
---|---|
date | Thu, 31 Jul 2014 11:13:37 +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