시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
2 초 | 512 MB | 181 | 166 | 143 | 93.464% |
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
*************** *.**.**..*.**.. *******..*.**** *.**.**..*.**.. *.*************
10 ECADBECADB
****************************** *..*..*.**.**.**..*..*.**.**.* ****..****.********..****.**** *..*..*.**.**.**..*..*.**.**.* *******.**************.*******