Day 1: 58 bytes of Haskell. 48 bytes of Python. I suspect Haskell will amortize better on more complex tasks. Half the difference here was requiring main= in the Haskell code, and it has a much more concise lambda syntax.

[edit]
My initial C implementation also came in at 58 bytes, however I got it down to 38 bytes under a reasonable interpretation of the rules. I also managed an implementation in 1 byte of C under an IOCCC-esque interpretation of the rules.

[edit]

I got my Haskell implementation down to 54 bytes while writing up my readme. Discussion with Tari in sax got it down to 46, which beats even my python implementation. I'm submitting both versions, but for sake of fairness I don't expect the graders to necessarily include it.
elfprince13 wrote:
I also managed an implementation in 1 byte of C under an IOCCC-esque interpretation of the rules.
I had the same thought, but didn't bother implementing anything. This is one reason I've said that the judges should specify the compiler+version and options in use (and implied arbitrary compiler options should not be permitted).
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement