Logo
(追記) (追記ここまで)

15444번 - Vera and ABCDE 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB33328421386.939%

문제

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.

제한

예제 입력 1

5
ABCDE

예제 출력 1

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

예제 입력 2

10
ECADBECADB

예제 출력 2

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

힌트

출처

Contest > Waterloo's local Programming Contests > 24 June, 2017 A번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /