def cora(st_k): li = ['c=', 'c-', 'dz=', 'd-', 'lj', 'nj', 's=', 'z='] sum=0 for i in range(len(li)): tmp = st_k.find(li[i]) if tmp != -1: sum+=st_k.count(li[i]) st_k=st_k.replace(st_k[tmp:tmp+len(li[i])],' ') #print st_k, tmp return st_k , str(sum) k=raw_input() #print cora(k) k= cora(k) st=k[0].replace(' ','') #이부분 바꿈 ... print len(st)+int(k[1])
lpko0792 5년 전
COCI에 있는 TC 사용해봐도 잘 모르겠네요 ㅜㅜ