You are viewing a single comment's thread. Return to all comments →
N = int(raw_input()) page = list() for x in xrange(N): line = raw_input() page.append(line) Q = int(raw_input()) for x in xrange(Q): query = raw_input() print page.count(query)
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 →