Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Code Golf: Four is magic

by deMize (Monk)
on Jul 13, 2010 at 01:43 UTC ( #849142=note: print w/ replies, xml ) Need Help??


in reply to Re: Code Golf: Four is magic
in thread Code Golf: Four is magic

I should say, that I this is not my puzzle. I merely copy/pasted it from the embedded link. I take no credit for this, despite how fun it is to do.

So far what we came up with is 139 chars:
@u=split'','4335043554366887798866555766';$_=<>;chop;print"$_ is ".($_=$_<20?$u[$_]:$u[$_/10+18]+($_%10?$u[$_%10]:0)or"magic").".\n"while$_
depending on the rules of golf '\n' could be substituted for an actual linebreak.


Demize


Comment on Re^2: Code Golf: Four is magic
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (15)
As of 2014-04-24 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls