Do you recognize the PPCG logo? it looks like this, when you do an ascii art of it.
+---+
|PCG|
+---+
v
Now, In this Code Golf, You will make a code, that makes logos for other sites, similar to the PPCG logo.
What You should do
The "Shortened" string will be the string, with all upper case letters and numbers in the input string.(Which would be PPCG
when the input string is Programming Puzzles & Code Golf
)
The "Box" (
+---+
| |
+---+
v
) should fit the Shortened string perfectly.(No bigger or smaller)
Also the v
part should be exactly 1 down and 1 left to the down right +
.
Then output the box which has the shortened string in it.
Example
Stack Overflow
:
+--+
|SO|
+--+
v
Area 51
:
+---+
|A51|
+---+
v
Rules
You may assume that the input contains at least one digit or upper case letter.
Standard code-golf rules apply.
^
doesn't add much compared to the second challenge I linked, but I won't cast a dupe hammer on that but let the communitz decide whether they consider it a dupe or not. \$\endgroup\$99 Bottles Of Beer
, it would be99BOB
. \$\endgroup\$