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

[백준/파이썬] 26004번 HI-ARC

by 현장 2023. 3. 20.

-Code

hiarc = "HIARC"
res = [0] * 5

n = int(input())
s = input()

for i in range(5):
    res[i] = s.count(hiarc[i])
print(min(res))