404142: GYM101431 A Vera and ABCDE
Memory Limit:512 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
A. Vera and ABCDEtime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard output
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.
InputLine 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.
OutputPrint 5 lines, each with 3N characters, the corresponding sequence of blocks.
ExamplesInput5Output
ABCDE
***************Input
*.**.**..*.**..
*******..*.****
*.**.**..*.**..
*.*************
10Output
ECADBECADB
******************************
*..*..*.**.**.**..*..*.**.**.*
****..****.********..****.****
*..*..*.**.**.**..*..*.**.**.*
*******.**************.*******