You are viewing a single comment's thread. Return to all comments →
Python with no external libraries.
lst = [] for i in range(int(input())): lst.append(input()) for i in range(int(input())): query_string = input() count = 0 for i in range(len(lst)): if query_string == lst[i]: count += 1 print(count)
Seems like cookies are disabled on this browser, please enable them to open this website
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →
Python with no external libraries.