-
2941_Python // 크로아티아 알파벳IT_Baekjoon 단계별로 풀어보기/문자열 2020. 1. 15. 13:28

Python
s = str(input()) c = 0 c += s.count('c=') s = s.replace('c=',' ') c += s.count('c-') s = s.replace('c-',' ') c += s.count('dz=') s = s.replace('dz=',' ') c += s.count('d-') s = s.replace('d-',' ') c += s.count('lj') s = s.replace('lj',' ') c += s.count('nj') s = s.replace('nj',' ') c += s.count('s=') s = s.replace('s=',' ') c += s.count('z=') s = s.replace('z=',' ') s = s.replace(' ','') c += len(s) print(c)===
'IT_Baekjoon 단계별로 풀어보기 > 문자열' 카테고리의 다른 글
5622_Python // 다이얼 (0) 2020.01.14 2908_Python // 상수 (0) 2020.01.14 1157_Python // 단어 공부 (실패) (0) 2020.01.12 1152_Python // 단어의 개수 (0) 2020.01.12 2674_Python // 문자열 반복 (0) 2020.01.12