Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = int(input())
- answerList = []
- for i in range(count):
- line = input().split()
- intList = [int(item) for item in line]
- intList.pop(0)
- answerList.extend(intList)
- answerList = list(set(answerList))
- print(len(answerList))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement