Skip to content

Commit

Permalink
2024-04-02 크로아티아 알파
Browse files Browse the repository at this point in the history
  • Loading branch information
pu2rile committed Apr 2, 2024
1 parent 8e36f0e commit f9cf87a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pu2rile/문자열/크로아티아 알파벳.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
change = ['c=','c-','dz=','d-','lj','nj','s=','z=']
str = input()
for n in change: #change에서 하나씩 루프 돌며
str = str.replace(n, 'a') #str과 같은 문자를 발견하면 해당 문자를 a으로 치환
print(len(str)) #str의 길이

0 comments on commit f9cf87a

Please sign in to comment.