You are viewing a single comment's thread. Return to all comments →
Python Rocks!
rocks = [set(input()) for _ in range(int(input()))] gems = set.intersection(*rocks) print(len(gems))
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 →
Python Rocks!