Search found 36 matches

Return to advanced search

Re: Triangle Numbers are a B!*$@

Easy closed form for this recurrence relation. Of course, jgr steals my thunder.

Code: Select all
main = print . sum . take 20 . map tetra . iterate ((+ 9) . (* 10)) $ 9
  where tetra n = (n * (n + 1) * (n + 2)) `div` 6
by apples
on Fri Aug 16, 2013 4:39 pm
 
Forum: User Submitted
Topic: Triangle Numbers are a B!*$@
Comments: 18
Views: 27493

Re: [NEW] Apache 0day!!! only available on HTS [NEW]

this is hilarious! your code sucks.
by apples
on Thu Aug 15, 2013 12:43 am
 
Forum: Interpreted Languages
Topic: [NEW] Apache 0day!!! only available on HTS [NEW]
Comments: 20
Views: 45518

Re: Create a Guess Game

import System.IO import System.Random data Temp = Exact | Hot | Warm | Cold deriving (Show, Eq) temp :: Int -> Temp temp dist | dist == 0 = Exact | dist <= 2 = Hot | dist <= 4 = Warm | otherwise = Cold guess :: Int -> Int -> IO () guess 0 ans = putStrLn $ &quo...
by apples
on Sun Aug 11, 2013 6:28 pm
 
Forum: User Submitted
Topic: Create a Guess Game
Comments: 40
Views: 76440

Re: Create a Leet Translator!

import qualified Data.Bimap as B import Control.Monad main = forever $ getLine >>= putStrLn . map mutate where dict = B.fromList $ zip "abcdefghijklmnoqrstuvwxy" "ɐߩЀƒ&#I¿K£M?øQЯ§†µ^W×¥" mutate c = maybe c id $ B.lookup c dict `mplus` B.lookup...
by apples
on Sun Aug 11, 2013 5:05 pm
 
Forum: User Submitted
Topic: Create a Leet Translator!
Comments: 23
Views: 30410

hello

my suggestion is to ungline me from irc

don't be fags

thanks
by apples
on Tue Jul 12, 2011 7:22 pm
 
Forum: Comments & Suggestions
Topic: hello
Comments: 1
Views: 6158

Re: New to HTS IRC...off to a bad start

i lol'd

grow a pair and wait until you can play with the big boys
by apples
on Tue Apr 05, 2011 3:16 pm
 
Forum: IRC
Topic: New to HTS IRC...off to a bad start
Comments: 16
Views: 21036

Re: HTS Needs to Stop Sucking

760,840 + (1/8 * 760,840) > 55,945
by apples
on Sun Feb 06, 2011 3:40 pm
 
Forum: Comments & Suggestions
Topic: HTS Needs to Stop Sucking
Comments: 158
Views: 209276
Next

Return to advanced search