407245: GYM102709 A Elesay

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

A. Elesaytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

The other day, your friend was sharing their screen over Zoom. They pulled up their terminal and typed in cowsay "hello world" and an ascii art cow appeared that said "hello world"! Seeing this, you were inspired to make a slightly different version of this with your favorite animal, an elephant. In your version, you have input with the words that the elephant is saying as well as the ascii art for the elephant. Your job is to output this information.

Tips on using input:

- Beginner Workshop Slides

- If you're using Java or C++, be sure to clear your buffer after reading in an int!

Input

The first line of input will contain a string $$$S$$$ containing the text that the elephant will be saying.

The second line of input will contain an integer $$$N$$$, the number of lines of ascii art to follow.

The following $$$N$$$ lines of input will each contain a string containing a line of ascii art. These lines will be in the order such that they form an elephant.

$$$1 \leq N \leq 50$$$

Output

Output the text that the elephant is saying followed by a new line and then each line of the ascii elephant in the order that it was given.

ExamplesInput
Hello World
15
     __
    '. \
     '- \
      / /_         .---.
     / | \\,.\/--.//    )
     |  \//        )/  /
      \  ' ^ ^    /    )____.----..  6
       '.____.    .___/            \._)
          .\/.                      )
           '\                       /
           _/ \/    ).        )    (
          /#  .!    |        /\    /
          \  C// #  /'-----''/ #  /
       .   'C/ |    |    |   |    |     ,
       \), .. .'OOO-'. ..'OOO'OOO-'. ..\(,
Output
Hello World

     __
    '. \
     '- \
      / /_         .---.
     / | \\,.\/--.//    )
     |  \//        )/  /
      \  ' ^ ^    /    )____.----..  6
       '.____.    .___/            \._)
          .\/.                      )
           '\                       /
           _/ \/    ).        )    (
          /#  .!    |        /\    /
          \  C// #  /'-----''/ #  /
       .   'C/ |    |    |   |    |     ,
       \), .. .'OOO-'. ..'OOO'OOO-'. ..\(,
Input
Hope you're having an elephantastic day!
4
  _____
(  . .  )
 / |_| \,
 |_| |_|
Output
Hope you're having an elephantastic day!

  _____
(  . .  )
 / |_| \,
 |_| |_|

加入题单

上一题 下一题 算法标签: