complete 2098.py 5052.py 14425*.py 14725.py & add 13505.py

This commit is contained in:
2024-11-25 18:34:48 +09:00
parent 334aa22a28
commit f026c2ef95
6 changed files with 232 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import sys
input = sys.stdin.readline
if __name__ == "__main__":
N, M = map(int, input().split())
S = {input().rstrip() for _ in range(N)}
print(sum(1 for _ in range(M) if input().rstrip() in S))