Python

regex를 써야되나?

str include 함수가 있나?

n, K=input().split()
N=int(n)
arr = input().split()
result = []
for i in range(N):
	if K not in arr[i]:
		result.append(arr[i])

print(len(result))

not in 으로 하니 잘 작동했다.