Are we confirmed on a date for this month's meeting? As I was leaving
work today, there was a guy out front asking if Boston.pm was meeting
tonight, seeing as this is the second Tuesday of the month. I told him
to sign up for the list to get the announcement -- partly because I'm
bad with names and knew I wouldn't remember his or his email address.
sorry about that, if I'm talking about you :(  So... Ronald?

</administrivia>


On a different note, last weekend on NPR there was a puzzle that it seems
to me could be solved pretty neatly by a Perl script, and I'm curious
what solutions people would try for it. Consider the following string:

    1 2 3 4 5 6 7 8 9    =    2002

The problem is to add any number of addition & multiplication operations
wherever you'd like on the left such that in the end you have a valid
equation. So for example if it gets you to a solution you can have:

    12 * 345 + 6 ...

if that works as part of your solution [it's much too big: 4146].

Bearing in mind that multiplication takes higher precedence than addition,
what is the solution? Supposedly there is only one correct answer, but I
haven't yet figured it out. Anyone want to suggest a clever solution?
Maybe a oneliner? Maybe a proof of multiple correct answers? Fire away :)



-- 
Chris Devers

_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to