4573 - 아스키아트 (Challenge)

Time Limit: 1s Memory Limit: 128MB

Submissions: 51 Solved: 14
Description

숫자와 알파벳으로 이루어진 문자열을 아래 Sample Output처럼 아스키아트로 출력해보자.

 

이 때, 대문자와 소문자의 출력 형식은 똑같이 생겼다.

변환된 문자 사이에는 공백이 한 칸 있어야 하며, 줄의 마지막에는 공백이 없어야 한다.

변환된 줄 사이에는 빈 줄이 한 줄 있어야 하며, 마지막에는 빈 줄이 없어야 한다.

Input

Line 1:입력의 갯수 N (1 ≤ N ≤ 100)

Line 2~N+1: 숫자와 알파벳으로만 이루어진 문자열 (문자열의 길이는 100자를 넘지 않는다.)

Output

Line 1~N: 변환된 문자열

Sample Input
7
abcdef
ghijkl
mnopqr
stuvwx
yz0123
456789
asdfASDF
Sample Output
   #    ######   #####  ######  ####### #######
  # #   #     # #     # #     # #       #
 #   #  #     # #       #     # #       #
#     # ######  #       #     # #####   #####
####### #     # #       #     # #       #
#     # #     # #     # #     # #       #
#     # ######   #####  ######  ####### #

 #####  #     # ###       # #    # #
#     # #     #  #        # #   #  #
#       #     #  #        # #  #   #
#  #### #######  #        # ###    #
#     # #     #  #  #     # #  #   #
#     # #     #  #  #     # #   #  #
 #####  #     # ###  #####  #    # #######

#     # #     #  #####  ######   #####  ######
##   ## ##    # #     # #     # #     # #     #
# # # # # #   # #     # #     # #     # #     #
#  #  # #  #  # #     # ######  #     # ######
#     # #   # # #     # #       #   # # #   #
#     # #    ## #     # #       #    #  #    #
#     # #     #  #####  #        #### # #     #

 #####  ####### #     # #     # #     # #     #
#     #    #    #     # #     # #  #  #  #   #
#          #    #     # #     # #  #  #   # #
 #####     #    #     # #     # #  #  #    #
      #    #    #     #  #   #  #  #  #   # #
#     #    #    #     #   # #   #  #  #  #   #
 #####     #     #####     #     ## ##  #     #

#     # #######   ###     #    #####   #####
 #   #       #   #   #   ##   #     # #     #
  # #       #   #     # # #         #       #
   #       #    #     #   #    #####   #####
   #      #     #     #   #   #             #
   #     #       #   #    #   #       #     #
   #    #######   ###   ##### #######  #####

#       #######  #####  #######  #####   #####
#    #  #       #     # #    #  #     # #     #
#    #  #       #           #   #     # #     #
#    #  ######  ######     #     #####   ######
#######       # #     #   #     #     #       #
     #  #     # #     #   #     #     # #     #
     #   #####   #####    #      #####   #####

   #     #####  ######  #######    #     #####  ######  #######
  # #   #     # #     # #         # #   #     # #     # #
 #   #  #       #     # #        #   #  #       #     # #
#     #  #####  #     # #####   #     #  #####  #     # #####
#######       # #     # #       #######       # #     # #
#     # #     # #     # #       #     # #     # #     # #
#     #  #####  ######  #       #     #  #####  ######  #
Hint
{
    "   #    ######   #####  ######  ####### #######  #####  #     # ###       # #    # #       #     # #     #  #####  ######   #####  ######   #####  ####### #     # #     # #     # #     # #     # #######   ###     #    #####   #####  #       #######  #####  #######  #####   #####  ",
    "  # #   #     # #     # #     # #       #       #     # #     #  #        # #   #  #       ##   ## ##    # #     # #     # #     # #     # #     #    #    #     # #     # #  #  #  #   #   #   #       #   #   #   ##   #     # #     # #    #  #       #     # #    #  #     # #     # ",
    " #   #  #     # #       #     # #       #       #       #     #  #        # #  #   #       # # # # # #   # #     # #     # #     # #     # #          #    #     # #     # #  #  #   # #     # #       #   #     # # #         #       # #    #  #       #           #   #     # #     # ",
    "#     # ######  #       #     # #####   #####   #  #### #######  #        # ###    #       #  #  # #  #  # #     # ######  #     # ######   #####     #    #     # #     # #  #  #    #       #       #    #     #   #    #####   #####  #    #  ######  ######     #     #####   ###### ",
    "####### #     # #       #     # #       #       #     # #     #  #  #     # #  #   #       #     # #   # # #     # #       #   # # #   #         #    #    #     #  #   #  #  #  #   # #      #      #     #     #   #   #             # #######       # #     #   #     #     #       # ",
    "#     # #     # #     # #     # #       #       #     # #     #  #  #     # #   #  #       #     # #    ## #     # #       #    #  #    #  #     #    #    #     #   # #   #  #  #  #   #     #     #       #   #    #   #       #     #      #  #     # #     #   #     #     # #     # ",
    "#     # ######   #####  ######  ####### #        #####  #     # ###  #####  #    # ####### #     # #     #  #####  #        #### # #     #  #####     #     #####     #     ## ##  #     #    #    #######   ###   ##### #######  #####       #   #####   #####    #      #####   #####  "
}

I는 가로 3칸, 1은 가로 5칸, K는 6칸, 나머지는 7칸임에 주의한다.