Set .add()

  • + 0 comments
    n=int(input())
    s=set()
    for i in range(n):
      a=input()
      s.add(a)
    print(len(s))