view Test.hs @ 4489:bd36f4329baa

<ion> printf \'%s\\n\' \'print_args_or_input "$@" | tr a-zA-Z n-za-mN-ZA-M\' >bin/rot13
author HackBot
date Sat, 22 Feb 2014 02:26:11 +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