• DWITE - Programming Contest
    35 replies, posted
[QUOTE=nullsquared;19177806]No point, the best solutions are already on the discussion threads available when you solve a problem. The J coders there will beat any one liner of obscure code anyone on here can come up with :v:[/QUOTE] Ah, but you get over them and they're not entertaining :science: Lol I love some of my code. It's so wrong (may be incomplete). [code] import qualified Data.ByteString.Lazy.Char8 as BS main = print $ BS.reverse $ BS.take 10 $ BS.reverse $ BS.pack $ show $ 28433 * (2 ^ 7830457) + 1 [/code] [code] main = print $ foldl max 1 d where d = [sum $ map (read . return) $ show $ a^b | a <- [1..100], b <- [1..100]] [/code] [code] main = print $ reverse $ take 10 $ reverse $ show $ sum [n^n | n <- [1..1000]] [/code] [code] main = print $ length $ nub $ sort $ [a^b | a <- [2..100], b <- [2..100]] [/code] And my favorite <3 [code] fibs = 1:1:zipWith (+) fibs (tail fibs) main = let d = zip [1..] fibs in print $ fst $ head $ dropWhile (not . (==1000) . length . show . snd) d [/code] ^^ Haha I wasn't even trying to be obscure on these. They just came to me (during java lecture, lol).
The next round of the contest is this Wedsnesday. I'm not sure if you can make an account without a registered school, so if anyone wants, I can post the problems as they appear.
[QUOTE=Shanethe13;19715770]The next round of the contest is this Wedsnesday. I'm not sure if you can make an account with a registered school, so if anyone wants, I can post the problems as they appear.[/QUOTE] Cool, but wouldn't that be against the contest's terms and conditions?
[QUOTE=nullsquared;19721259]Cool, but wouldn't that be against the contest's terms and conditions?[/QUOTE] Technically, yes, but I don't see how it would ruin the contest for anyone. It isn't like you'd be able to submit your solutions.
[QUOTE=Shanethe13;19721941]Technically, yes, but I don't see how it would ruin the contest for anyone. It isn't like you'd be able to submit your solutions.[/QUOTE] No but you could have additional people help you.
[QUOTE=gparent;19724036]No but you could have additional people help you.[/QUOTE] Actually, the reason I would be able to post the problems, is that chances are I won't be able to compete, so I"ll be at home anyways :P My teacher isn't free to supervise. Although, I suppose I'll just wait for the contest to end.
Sorry, you need to Log In to post a reply to this thread.