3
\$\begingroup\$

This question already has an answer here:

The Oscars are coming up soon and we all know who's going to win Best Actor in a Leading Role this year right? The great Leonardo DiCaprio of course! Despite his superb performances in all of his films during his career, he has yet to win an Academy Award. So as tribute and as a way to wish him luck during the Awards Ceremony this year, your task is to print "Leonardo DiCaprio" (without quotes and case-sensitive) without using any letters in his name in your code. This is code-golf so the shortest code wins. Score is based on your code in bytes. Any language is acceptable.

-100 Points if you can print his name on an ascii plate like so (Best Actor not required):

 _____________________________
|                             |
|      Leonardo DiCaprio      |
|         Best Actor          |
|_____________________________|

Edit For clarification, the rule for not "using any letters in his name in your code" is case-insensitive.

Also another edit you may use spaces.

\$\endgroup\$

marked as duplicate by Peter Taylor, bwoebi, ace, Vereos, Doorknob Feb 20 '14 at 13:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • \$\begingroup\$ without using any letters in his name in your code Is this rule case-insensitive? \$\endgroup\$ – n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ Feb 20 '14 at 6:22
  • \$\begingroup\$ @nhahtdh yes, it's case-insensitive. \$\endgroup\$ – Milo Feb 20 '14 at 6:56
  • \$\begingroup\$ I should have phrase my question clearer. Do you allow lowercase c, or is it forbidden since uppercase C is in his name? \$\endgroup\$ – n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ Feb 20 '14 at 6:59
  • 1
    \$\begingroup\$ Is correct case required in the output? Which of the following are acceptable? 1. Leonardo DiCaprio 2.LEONARDO DICAPRIO 3.leonardo dicaprio 4.Something random like lEONardo dicAPRIo \$\endgroup\$ – Level River St Feb 20 '14 at 9:21
  • 1
    \$\begingroup\$ @steveverrill Correct case required. \$\endgroup\$ – Milo Feb 20 '14 at 9:46
14
\$\begingroup\$

J, 54 - 100 = -46

<17$3(3!:4)8026666198671254860 7598259084372558880 111

Output:

┌─────────────────┐
│Leonardo DiCaprio│
└─────────────────┘
\$\endgroup\$
  • \$\begingroup\$ "like so" was the request. \$\endgroup\$ – Bill Woodger Feb 20 '14 at 9:51
  • \$\begingroup\$ This can be trimmed down by using base-36 encoding of the long integers, reducing each with 3 characters. \$\endgroup\$ – jpjacobs Feb 20 '14 at 12:15
  • \$\begingroup\$ @jpjacobs I think base-36 would use some of the letters that aren't permitted. \$\endgroup\$ – grc Feb 20 '14 at 12:37
  • \$\begingroup\$ Ah sure, I totally forgot that rule, sorry. \$\endgroup\$ – jpjacobs Feb 21 '14 at 11:27
5
\$\begingroup\$

HTML/Markdown, 96 bytes

&#76;&#101;&#111;&#110;&#97;&#114;&#100;&#111;&#32;&#68;&#105;&#67;&#97;&#112;&#114;&#105;&#111;

This works even with the strictest rule (no space, no letter case-insensitive).

Markdown, 194 - 100 = 94 bytes

This is the fancy version, so it uses quite a lot of bytes (UTF-8). At the end of the first 2 lines are 2 spaces.

╔════════════╗  
║&#76;&#101;&#111;&#110;&#97;&#114;&#100;&#111;&#32;&#68;&#105;&#67;&#97;&#112;&#114;&#105;&#111;║  
╚════════════╝

How it looks (may or may not look good depending on the font face):

╔════════════╗
║Leonardo DiCaprio║
╚════════════╝

Markdown, 142 - 100 = 42 bytes

This is the poor man's version. No Unicode character is used, so quite lightweight.

~~~~~~~~~~~~~~~~~  
| &#76;&#101;&#111;&#110;&#97;&#114;&#100;&#111;&#32;&#68;&#105;&#67;&#97;&#112;&#114;&#105;&#111; |  
~~~~~~~~~~~~~~~~~

It looks like a cookie to me:

~~~~~~~~~~~~~~~~~
| Leonardo DiCaprio |
~~~~~~~~~~~~~~~~~

\$\endgroup\$
  • \$\begingroup\$ "like so" was the request. Three outputs each different in format but not as required is fun, though. \$\endgroup\$ – Bill Woodger Feb 20 '14 at 9:52
  • \$\begingroup\$ @BillWoodger: Most answers here don't even follow OP's format. \$\endgroup\$ – n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ Feb 20 '14 at 12:24
5
\$\begingroup\$

BF, 77

203 chars = 609 bits = 77 bytes

-[------->+<]>+++.-[--->++++<]>+.++++++++++.-.-------------.--[--->+<]>---.--------------.+++++++++++.[--->+<]>-----.++[->++<]>.++[-->+++<]>.++[->+++<]>++.-[-->+++<]>--.-[++>-----<]>.++.---------.++++++.

Output:

Leonardo DiCaprio
\$\endgroup\$
4
\$\begingroup\$

Sclipting, 39 bytes

丟냆녯닦굲뉆묠끆땃눗걲늖및

Based on the Hello, world! program, just encode the name as string.

\$\endgroup\$
1
\$\begingroup\$

JavaScript 221 - 100 = 121

This took a little working out... instead of printing, it pushes the result as an alert... best I could do... trying to make this code do a document.write would have floored me...

3[z=(y=''+{})[5]+y[1]+(''+1/0)[1]+'st'+(x=''+!0)[1]+'u'+y[5]+'t'+y[1]+x[1]][z]("\141\154\145\162t('"+(v="+--------------------+")+"\\\156|\114\145\157\156\141\162\144\157 \104\151\103\141\160\162\151\157|\\\156"+v+"')")()

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.