1713. Vera and ABCDE

时间限制 2000 ms   内存限制 512 MB

When Vera was learning English, she had 5 types of toy blocks, one for each of the first 5 uppercase letters. A block can be represented as a 5 × 3 grid with characters . and *. The 5 types of blocks look like the following:
*** *** *** *** ***
*.* *.* *.. *.* *..
*** *** *.. *.* ***
*.* *.* *.. *.* *..
*.* *** *** *** ***
Vera has a word S with N letters and wonders what the corresponding sequence of blocks look like when arranged in a row.

输入数据

Line 1 contains integer N (1 ≤ N ≤ 2017).

Line 2 contains string S of length N, and consists of only letters A, B, C, D, E. 

输出数据

Print 5 lines, each with 3N characters, the corresponding sequence of blocks.

样例输入

复制
5
ABCDE
 \n
     \n

样例输出

复制
***************
*.**.**..*.**..
*******..*.****
*.**.**..*.**..
*.*************               \n
               \n
               \n
               \n
               \n

样例说明

For input:

10
ECADBECADB
The output should be:

******************************
*..*..*.**.**.**..*..*.**.**.*
****..****.********..****.****
*..*..*.**.**.**..*..*.**.**.*
*******.**************.*******

提交

请先 登录

© 2025 FAQs Contact About