← Back to List

26742번: Skarpetki ↗

Solutions

Python 3
56 B | 56 chars
s = input()
print(s.count('C') // 2 + s.count('B') // 2)