You are viewing a single comment's thread. Return to all comments →
Its pretty elegant even in a 6 line Python solution, you should have no problem reading this:
n = int(input()) c = set(input()) for i in range(n-1): a = set(input()) c = c.intersection(a) print(len(c))
Seems like cookies are disabled on this browser, please enable them to open this website
Gemstones
You are viewing a single comment's thread. Return to all comments →
Its pretty elegant even in a 6 line Python solution, you should have no problem reading this: