Created
April 20, 2023 23:36
-
-
Save modos/124069f39c79794867e388947b882053 to your computer and use it in GitHub Desktop.
جاسوسی
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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