-
1439코테 대비 python/백준 2023. 1. 23. 01:21
https://www.acmicpc.net/problem/1439
import math a= input() count = 0 for i in range(len(a)-1): if a[i] != a[i+1]: count+=1 print(math.ceil(count/2))
'코테 대비 python > 백준' 카테고리의 다른 글
14620 (0) 2023.01.24 1789 (1) 2023.01.23 1436 (0) 2023.01.21 12919 A와 B2 (0) 2022.11.04 2667 단지번호 붙히기 (0) 2022.11.03