-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))
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 25785번 Easy-to-Pronounce Words (0) | 2023.03.22 |
---|---|
[백준/파이썬] 5342번 Billing (0) | 2023.03.21 |
[백준/파이썬] 26314번 Vowel Count (0) | 2023.03.19 |
[백준/파이썬] 24606번 Double Password (0) | 2023.03.18 |
[백준/파이썬] 27106번 Making Change (0) | 2023.03.17 |