Search

36. 백준_Python [7567] 그릇

shape = input() length = 10 for i in range(1, len(shape)): if shape[i] == shape[i-1]: length += 5 else: length += 10 print(length)
Python
복사