in reply to Re^5: 2008 Winter Scripting Games have begun
in thread 2008 Winter Scripting Games have begun

xdg,
Well, I calculated how many words were exactly 7 characters long and did not contain Q or Z. After removing duplicates (words that generated the same phone number), there were only 3818 entries. I precomputed all possible solutions and stuck them in __DATA__ so nefarious means =
my %lookup = unpack("(A7A7)*", <DATA>);
Provided they use the same wordlist.txt that was distributed in the kit, my solution is valid. Since I have been awarded 10 points, I assume they didn't really mean you have to point to 'C:\Scripts' when they run it.

Cheers - L~R

Replies are listed 'Best First'.
Re^7: 2008 Winter Scripting Games have begun
by xdg (Monsignor) on Feb 19, 2008 at 11:34 UTC

    If it's the same wordlist, that certainly sounds sufficient to meet the requirement. Though I would say that approach could be considered more than "four lines" long. ;-)

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      xdg,
      I chose my words carefully:

      ... my solution is only 4 lines of code ...

      The fact that I omitted 1 line of __DATA__ that is 53_452 bytes was an um oversight >:-)

      Cheers - L~R