728x90
반응형

문자열 & 브루트포스 알고리즘 문제이다. 파이썬에 있는 count 함수를 쓰면 매우 쉽게 풀 수 있다.

print(input().count(input()))
728x90
반응형

+ Recent posts