A higher resolution is required to access the IDE
- 2258
Learning Opportunities
This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.
Statement
Goal
Back in the day, people had fun turning "recipes" into surprise images using typewriters.Use the provided recipe to create a recognizable image.
Chunks in the recipe are separated by a space.
Each chunk will tell you either
~or~
how many of the character and what character
For example:
(If a chunk is composed only of numbers, the character is the last digit.)
So if part of the recipe is
...that tells you to show
** x''''and then go to a new line.
Abbreviations used:
and
Sources/references:
https://asciiart.cc
https://loriemerson.net/2013/01/18/d-i-y-typewriter-art/
https://www.youtube.com/watch?v=kyK5WvpFxqo
Input
string recipe
Output
string (multiple lines) to show the image the recipe creates
Constraints
5 ≤ Length of recipe ≤ 1000
There won't be any double quotes (" ) in the recipe
recipe will contain at least 1nl
There won't be any double quotes (
recipe will contain at least 1
Example
Input
1sp 1/ 1bS 1_ 1/ 1bS nl 1( 1sp 1o 1. 1o 1sp 1) nl 1sp 1> 1sp 1^ 1sp 1< nl 2sp 3|
Output
/\_/\ ( o.o ) > ^ < |||
A higher resolution is required to access the IDE