Vera and ABCDE
InterviewTime limit2sMemory limit512 MB
Given a string of N letters from A to E, render the 5x3 pattern for each letter side by side and print the resulting 5 rows of 3N characters.
- Level
Easy3 of 10
- Topics
- Implementation, String, Simulation, Array
- Solved
- No attempts yet
Problem
When Vera was learning English, she played with five kinds of toy blocks, one for each of the first five uppercase letters. One block is a grid of the characters . and *. The five kinds look like this.
*** *** *** *** ***
*.* *.* *.. *.* *..
*** *** *.. *.* ***
*.* *.* *.. *.* *..
*.* *** *** *** ***
Vera has a word of length . Lay the block for each letter of in a row from left to right, and report the shape that comes out.
Input
The first line contains an integer ().
The second line contains a string of length . consists only of the letters A, B, C, D, E.
Output
Print the shape of the blocks laid in a row on five lines. Each line has characters.