Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Ponder This: the worm-eaten page

by pijll (Beadle)
on Dec 17, 2004 at 16:50 UTC ( [id://415688]=note: print w/replies, xml ) Need Help??


in reply to Re: Ponder This: the worm-eaten page
in thread Ponder This: the worm-eaten page

perl -le '$_=join 0,1..9999;y/0/+/s;print eval'

Replies are listed 'Best First'.
Re^3: Ponder This: the worm-eaten page
by eyepopslikeamosquito (Archbishop) on Dec 23, 2004 at 02:55 UTC

    Gasp, what a beautiful orange! Could this really be brilliant Dutch golfer (-ugene in disguise? If so, he might be irritated if someone shaved a single stroke from his lovely solution. ;-)

    # One stroke improvement on (-ugene. ^.^ perl -le '$_=join 0,1..9x4;y/0/+/s;print eval' # And a couple of longer ones for fun. perl -le 'print eval join"+",map/[^0]+/g,1..9x4' perl -le 's}}join"+",map/[^0]+/g,1..9x4}ee;print' perl -le 's;;$%x9998;e;s;;++$%;eg;y;0;+;s;print eval'
      Everyone seems to optimize the algorithm because they understand the deep nature of the problem. After studying the problem for a very long time, here is my highly optimized version: perl -e 'print 37359000, "\n"'

      $will->code for @food or $$;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-19 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found