You are viewing a single comment's thread. Return to all comments →
One liner in python :
print(len(set.intersection(*[set(input()) for _ in range(int(input()))])))
Elaborated version :
rocks = [set(input()) for _ in range(int(input()))] gems = set.intersection(*rocks) print(len(gems))
Informative Tweets for Inquisitive Minds
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 →
One liner in python :
Elaborated version :
Informative Tweets for Inquisitive Minds