Mercurial > repo
view Test.hs @ 4522:8a3492516e1f
<oerjan> ` (echo \'#!/bin/sh\'; echo \'echo lambdabot: @tell `^_^v Get a better nick\') >bin/\'^_^v:\'; chmod +x bin/\'^_^v:\'
author | HackBot |
---|---|
date | Mon, 10 Mar 2014 20:27:16 +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