본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#46 백준 파이썬 [2941] 크로아티아 알파벳

https://www.acmicpc.net/problem/2941




#Solution


croatian_word = str(input())
croatian_reference = ["c=", "c-", "dz=", "d-", "lj", "nj", "s=", "z="]
for word in croatian_reference:
croatian_word = croatian_word.replace(word, "0")
print(len(croatian_word))