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

32903번 - Application List 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 2048 MB99827183.529%

문제

In a distant land, there lived a wise elder who was the keeper of all computer programs that ever existed. One day, the ruler of the land decreed to create a list all the programs, and the elder decided to do it by creating an Application List that would display the presence or absence of various applications.

He turned to you for help in this important task. You are given a list of programs with names consisting of lowercase English letters.

Your task is to fill a table of five rows and six columns. The first 26 cells of the table correspond to letters "a", "b", ..., "z" in alphabetic order. The last four cells are empty. Each cell contains the corresponding letter if there is at least one program in the list whose name starts with that letter. If there are no such programs, a dot should be placed instead.

입력

The first line contains an integer $n$: the number of programs (0ドル \le n \le 100$). Next, there are $n$ lines listing the program names. Each name contains from 1ドル$ to 20ドル$ lowercase English letters.

출력

Output the Application List in the format described above: five lines with letters and dots, without spaces between them. The first four lines must contain six characters each. The last line must contain two characters.

제한

예제 입력 1

10
apple
banana
cherry
date
eggplant
fig
grape
kiwi
lemon
mango

예제 출력 1

abcdef
g...kl
m.....
......
..

힌트

출처

ICPC > Regionals > Northern Eurasia > Northwestern Russia Regional Contest > ICPC 2024-2025 Northwestern Russia Qualification B번

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

출처

대학교 대회

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

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