Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: python coding contest

Reply
Thread Tools

Re: python coding contest

 
 
Tim Peters
Guest
Posts: n/a
 
      12-26-2005
Over at

http://spoj.sphere.pl/problems/SIZECON/

the task is to come up with the shortest program that solves a
different problem. There's a twist in this one:

Score equals to size of source code of your program except symbols with
ASCII code <= 32.

So blanks, newlines and tabs aren't counted at all. However, no
"control characters" of any kind are counted, and I found a convoluted
way to transform any Perl program so that only 7 "readable" characters
remain. That's currently the shortest solution known (given the
stated metric -- my Perl source is actually over 400 bytes! all but 7
of them have ord < 33, though).

There's probably still room for improvement in the "shortest" Python
program known for this task. No deadlines, no prizes, and you don't
get to see anyone else's code, but as a form of programming
masturbation it's great

http://spoj.sphere.pl/problems/KAMIL/

is another program-size task, but this one counts all bytes.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python coding contest Simon Hengel Python 23 01-02-2006 07:45 AM
Re: python coding contest Simon Hengel Python 92 01-02-2006 01:04 AM
Re: python coding contest Jean-Paul Calderone Python 2 12-28-2005 02:49 PM
Re: python coding contest Christian Tismer Python 4 12-26-2005 02:54 AM
Re: python coding contest Tim Hochberg Python 3 12-26-2005 02:54 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57