Programming_prob/BaekJoon
[백준] 2941번 크로아티아 알파벳
YongArtist
2020. 10. 7. 08:58
1일 1코딩
1 2 3 4 5 6 7 8 9 10 | def solution(): croatia_alpha = ['c=', 'c-', 'dz=', 'd-', 'lj', 'nj', 's=', 'z='] string = input() for i in croatia_alpha: string = string.replace(i, '0') return len(string) res = solution() print(res) | cs |