← Back to List

29713번: 브실이의 띠부띠부씰 컬렉션 🍪 ↗

Solutions

Python 3
122 B | 122 chars
input()
s = input()

x = min([s.count(i) for i in "BONZSILV"])
y = min([s.count(i) for i in "RE"])

print(min(x, y // 2))