view Test.hs @ 4492:02775a0b8839

<ion> sed -i -re \'s/echo ("?)\\$[@*]\\1 /print_args_or_input "$@" /g\' bin/complain bin/ord bin/ordu
author HackBot
date Sat, 22 Feb 2014 02:38:07 +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