본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 30958번 서울사이버대학을 다니고

by 현장 2023. 12. 18.

-Code

n = int(input())
logo_song = input()
res = 0

for w in "abcdefghijklmnopqrstuvwxyz":
    res = max(logo_song.count(w), res)

print(res)