Skip to content

Instantly share code, notes, and snippets.

@modos
Created April 20, 2023 23:36
Show Gist options
  • Save modos/124069f39c79794867e388947b882053 to your computer and use it in GitHub Desktop.
Save modos/124069f39c79794867e388947b882053 to your computer and use it in GitHub Desktop.
جاسوسی
n = int(input())
names = list()
for i in range(n):
names.append(input())
q = int(input())
info = set()
ans = 0
for i in range(q):
temp = input()
info.add(temp)
if len(info) == n:
ans += 1
info.clear()
info.add(temp)
print(ans)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment