20
\$\begingroup\$

Challenge

Print or return the Stack Exchange favicon, as provided below:

 ___________________
/                   \
---------------------
|                   |
---------------------
|                   |
---------------------
\__________    _____/
           |  /
           | /
           |/

This is , so the shortest answer in each language wins.

\$\endgroup\$
7
  • 2
    \$\begingroup\$ Is the top left corner intended to be slightly misaligned? \$\endgroup\$ – ETHproductions Jul 1 '17 at 1:04
  • \$\begingroup\$ @ETHproductions It was intended, but I'm changing it now. It looks kind of awkward either way. \$\endgroup\$ – musicman523 Jul 1 '17 at 1:18
  • 2
    \$\begingroup\$ The actual output is 219 bytes, for reference. \$\endgroup\$ – totallyhuman Jul 1 '17 at 1:55
  • \$\begingroup\$ Trailing lines and/or trailing spaces on lines are allowed, right? \$\endgroup\$ – dzaima Jul 1 '17 at 12:55
  • 1
    \$\begingroup\$ Related \$\endgroup\$ – Taylor Scott Jan 8 '18 at 17:38

37 Answers 37

1
2
1
\$\begingroup\$

tcl, 150

proc R {s n\ 19} {string repe $s $n}
puts " [R _]
/[R \ ]\\
-[R -]- 
[set T |[R \ ]|\n-[R -]- ]
$T
\\[R _ 11]    ____/
[set S [R \  12]|]  /
$S /
$S/"

demo


Another version with same number of bytes:

proc R {s n\ 19} {string repe $s $n}
puts " [R _]
/[R \ ]\\
[set T -[R -]-\ \n|[R \ ]|]
$T
-[R -]-
\\[R _ 11]    ____/
[set S [R \  12]|]  /
$S /
$S/"

demo

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

Python 3.6, 132 128 125 124 bytes

x,y="_ "
b=y*19
c='-'*21
e=y*11
f=f"{c}\n|{b}|\n"
print(fr''' {x*19}
/{b}\
{f*2+c}
\{x*10+y*4+x*5}/
{e}|  /
{e}| /
{e}|/''')

Try it online!

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

Windows batch, 263 bytes

@echo off
echo  ___________________
echo /                   \
for /l %%G in (1,1,2)do (
echo ---------------------
echo ^|                   ^|
)
echo ---------------------
echo \__________    _____/
echo            ^|  /
echo            ^| /
echo            ^|/
\$\endgroup\$
0
\$\begingroup\$

Braingolf, 129 120 bytes

9+.# [#_]#
#/[# ]#\#
&@#
.+>[#-]#
!&@V9+#|[# ]#|#
!&@R!&@v&@R&@934#
..#\[#_][# ][#_]#/#
[# ]"|  /
"[# ]"| /
"[# ]"|/"&@

Try it online!

As always, braingolf is not good at ASCII art

\$\endgroup\$
0
\$\begingroup\$

Golfscript, 102 bytes

Try it online!

This is less than half the size of the actual output.

' ''_'9*.'_ 
/'' '19*'\
''-'21*n+.'|'.5$\n+++.@.@\'\\'9$'_'' '4*'_'5*'/
'2$.'   |'++.'  /
'@.' /
'@'/'
\$\endgroup\$
0
\$\begingroup\$

C (gcc), 138 137 bytes

That string still taunts me with its look of compressibility.

f(i){for(char*s=" S_:/S \\:U-:|S |:U-:|S |:U-:\\J_D E_/:K |  /:K | /:K |/";*s;s++)for(i=*s>64&*s<91?*s++-64:1;i--;)putchar(*s^58?*s:10);}

Try it online!

\$\endgroup\$
0
\$\begingroup\$

PowerShell, 116 115 bytes

' _19
/ 19\
-21
| 19|
-21
| 19|
-21
\_10 4_5/
 11|  /
 11| /
 11|/'-replace'(.)(\d+)',{$x,$c,$n=$_|% gr*;"$c"*"$n"}

Try it online!

\$\endgroup\$
1
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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