728x90
반응형
문자열 & 브루트포스 알고리즘 문제이다. 파이썬에 있는 count 함수를 쓰면 매우 쉽게 풀 수 있다.
print(input().count(input()))
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 2711번 오타맨 고창영(python) (0) | 2021.02.25 |
---|---|
백준 알고리즘 2744번 대소문자 바꾸기(python) (0) | 2021.02.25 |
백준 알고리즘 5724번 파인만(python) (0) | 2021.02.25 |
백준 알고리즘 5533번 유니크(python) (0) | 2021.02.25 |
백준 알고리즘 5355번 화성 수학(python) (0) | 2021.02.25 |