Read the original story on slashdot here
Some Canadian college offered a computer science scholarship to anyone who could crack a code (a more text friendly version can be found here). The first winner recieved a full ride, and the next 100 recieved placement in the computer science department. The code is laughable: the numbers are base 4 (and are kindly delimted by a '/'); if you convert each to decimal, you get a number corresponding to a letter of english alphabet. I managed to crack it with one line of not-very-complex perl:
Does this mean I can go to college now? :)perl -e 's/(\d)(\d)(\d)\//chr($1*16+$2*4+$3+64)/ge;print' CODE_HERE
P.S. : Further golfing welcome.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 1: Canadian Cryptography Contest
by tilly (Archbishop) on Jan 22, 2002 at 17:55 UTC | |
by jryan (Vicar) on Jan 22, 2002 at 21:27 UTC | |
Re: Canadian Cryptography Contest
by Aristotle (Chancellor) on Jan 22, 2002 at 18:02 UTC | |
by tadman (Prior) on Jan 22, 2002 at 20:20 UTC | |
by tilly (Archbishop) on Jan 22, 2002 at 21:40 UTC | |
by tadman (Prior) on Jan 23, 2002 at 00:37 UTC | |
by tilly (Archbishop) on Jan 23, 2002 at 00:55 UTC | |
by Aristotle (Chancellor) on Jan 23, 2002 at 18:48 UTC | |
Re: Canadian Cryptography Contest
by random (Monk) on Jan 23, 2002 at 06:24 UTC | |
Re: Canadian Cryptography Contest
by nikos (Scribe) on Jan 22, 2002 at 16:28 UTC |