가장 많이 등장한 글자

면접 대비

시간 제한2초메모리 제한128 MB

요약
최대 50줄의 텍스트에서 소문자 빈도를 세어 가장 많이 나온 글자들을 알파벳 순서로 출력합니다.
난이도

쉬움10점 중 2점

유형
해시맵, 문자열, 구현
정답자
아직 제출이 없습니다

문제

영어 글에서는 어떤 알파벳 소문자가 다른 글자보다 더 자주 등장할 수 있습니다. 글이 주어졌을 때, 알파벳 소문자 중 가장 많이 등장한 글자를 모두 찾아 출력하세요.

입력

첫째 줄부터 파일의 끝까지 글이 주어집니다. 글은 최대 50개의 줄로 이루어져 있고, 각 줄은 최대 50개의 글자로 이루어져 있습니다. 각 줄에는 공백과 알파벳 소문자만 포함됩니다. 전체 입력에는 알파벳 소문자가 적어도 하나 있습니다.

출력

가장 많이 등장한 알파벳 소문자를 한 줄에 출력합니다. 그런 글자가 여러 개이면 알파벳 순서대로 모두 공백 없이 이어서 출력합니다.

예제5

  1. 예제 1

    입력
    english is a west germanic
    language originating in england
    and is the first language for
    most people in the united
    kingdom the united states
    canada australia new zealand
    ireland and the anglophone
    caribbean it is used
    extensively as a second
    language and as an official
    language throughout the world
    especially in common wealth
    countries and in many
    international organizations
    
    예상 출력
    a
    
  2. 예제 2

    입력
    baekjoon online judge
    
    예상 출력
    eno
    
  3. 예제 3

    입력
    abc a
    
    예상 출력
    a
    
  4. 예제 4

    입력
    abc
    ab
    
    예상 출력
    ab
    
  5. 예제 5

    입력
    amanda forsaken bloomer meditated gauging knolls
    betas neurons integrative expender commonalities
    latins antidotes crutched bandwidths begetting
    prompting dog association athenians christian ires
    pompousness percolating figured bagatelles bursted
    ninth boyfriends longingly muddlers prudence puns
    groove deliberators charter collectively yorks
    daringly antithesis inaptness aerosol carolinas
    payoffs chumps chirps gentler inexpressive morales
    
    예상 출력
    e