dish = input()
sum = 10
for i in range(1,len(dish)):
if dish[i-1] == dish[i]:
sum += 5
else:
sum += 10
print(sum)
'코테 준비' 카테고리의 다른 글
백준 10886번 - 0 = not cute / 1 = cute(Python) (0) | 2022.05.23 |
---|---|
백준 5063번 - TGN(Python) (0) | 2022.05.22 |
백준 2754번 - 학점계산(Python) (0) | 2022.03.25 |
백준 10156번 - 과자(Python) (0) | 2022.03.20 |
백준 2476번 - 주사위 게임(Python) (0) | 2022.03.20 |