Advertisement
yatochk

4

Jan 24th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. count = int(input())
  2.  
  3. answerList = []
  4. for i in range(count):
  5.     line = input().split()
  6.     intList = [int(item) for item in line]
  7.     intList.pop(0)
  8.     answerList.extend(intList)
  9.  
  10. answerList = list(set(answerList))
  11. print(len(answerList))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement