Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Holiday parcel puzzle

by JavaFan (Canon)
on Dec 22, 2011 at 22:33 UTC ( #944868=note: print w/ replies, xml ) Need Help??

in reply to Re: Holiday parcel puzzle
in thread Holiday parcel puzzle

The problem with your "concise" solution is that it's unclear whether your program matches the problem description. If you don't care about the latter, here's an even more concise one:

use 5.010; say "Please wait while I run a simulation ...."; sleep 5; say "Elves have wrapped a billion parcels, calling FedEx ...."; sleep 10; say "Not switching wins 33.3% of the time"; say "Switching wins 66.7% of the time";

Comment on Re^2: Holiday parcel puzzle
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://944868]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2015-11-27 01:33 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (711 votes), past polls