Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Code Golf: Four is magic

by Limbic~Region (Chancellor)
on Jul 13, 2010 at 00:09 UTC ( [id://849133]=note: print w/replies, xml ) Need Help??


in reply to Code Golf: Four is magic

deMize,
I know you are intentionally limiting input from 0 .. 99 to avoid ambiguity in the spelling of larger numbers. On the other hand, if you decided on a standard You could extend the challenge to golfing the implementation of the spelling AND the 4 is magic.

Cheers - L~R

Replies are listed 'Best First'.
Re^2: Code Golf: Four is magic
by deMize (Monk) on Jul 13, 2010 at 01:43 UTC
    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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-23 22:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found