Skip to content

Commit 6b996b4

Browse files
authored
[BOJ] 14425 문자열 집함 (S4)
1 parent 2978573 commit 6b996b4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

김지호/9주차/260223.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# https://www.acmicpc.net/problem/14425
2+
# 문자열 집합, 실버4
3+
4+
import sys
5+
6+
N, M = map(int, input().strip().split())
7+
8+
string_set = set()
9+
for _ in range(N):
10+
string_set.add(input().strip())
11+
12+
count = 0
13+
for _ in range(M):
14+
target = input().strip()
15+
if target in string_set:
16+
count += 1
17+
18+
print(count)

0 commit comments

Comments
 (0)