반응형
문제 설명

제출한 코드
word = input()
a_list = ['c=','c-','dz=','d-','lj','nj','s=','z=']
for i in a_list :
word = word.replace(i,'*')
print(len(word))
결과

후기
반응형
'BQJ 백준 > python' 카테고리의 다른 글
[Python/파이썬] 백준 3052번: 나머지 (0) | 2024.07.20 |
---|---|
[Python/파이썬] 백준 3003번: 킹, 퀸, 룩, 비숍, 나이트, 폰 (0) | 2024.07.17 |
[Python/파이썬] 백준 2920번: 음계 (0) | 2024.07.17 |
[Python/파이썬] 백준 2908번: 상수 (0) | 2024.07.12 |
[Python/파이썬] 백준 2884번: 알람 시계 (0) | 2024.07.12 |