Mercurial > repo
view Test.hs @ 4606:bee686ce5627
<oerjan> sed -i \'8s!.*! if re.match(r"/|\\\\.hg(?:/|$)",f):!\' bin/url
author | HackBot |
---|---|
date | Sun, 20 Apr 2014 22:29:43 +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