
백준 BAEKJOON 33709번 치매예방수칙 3.3.3 [PYTHON/파이썬][목차여기] (BRONZE Ⅰ)https://www.acmicpc.net/problem/33709 슬로건의 구분자는 ., |, :, # 4가지이다.replace를 사용하여 |, :, # 를 . 으로 바꾸는 작업을 하여split(".")을 사용하여 문자열을 구분해 준 뒤 숫자끼리 더해주었다. N = int(input())slogan = input()separator = ["|", ":", "#"]for s in separator: slogan = slogan.replace(s, ".")numberList = slogan.split(".")result = 0for n in numberList: res..