2941번
-
백준 2941번 : 크로아티아 알파벳(Python,파이썬)카테고리 없음 2018. 12. 26. 16:58
12345678910111213141516171819202122232425word = list(' '.join(input()).split())num = len(word)for i in range(len(word)-1): for j in range(i+1,i+2): if word[i] + word[j] =='c=': num-= 1 elif word[i] + word[j] =='c-': num-= 1 elif word[i] + word[j] =='d-': num-= 1 elif word[i] + word[j] =='lj': num-= 1 elif word[i] + word[j] =='nj': num-= 1 elif word[i] + word[j] =='s=': num-= 1 elif word[i] + wor..